questions.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Nextcloud Configuration"
  5. description: "Configuration details for Nextcloud workload"
  6. - name: "Storage"
  7. description: "Configure Storage for Nextcloud"
  8. - name: "Container Configuration"
  9. description: "Configure nextcloud container parameters"
  10. - name: "Postgresql Configuration"
  11. description: "Configure Postgresql for nextcloud"
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "http"
  16. host:
  17. - "$variable-nextcloud.host"
  18. ports:
  19. - "$variable-service.nodePort"
  20. questions:
  21. # Image related
  22. - variable: image
  23. description: "Docker Image Details"
  24. label: "Docker Image"
  25. group: "Container Images"
  26. schema:
  27. type: dict
  28. required: true
  29. attrs:
  30. - variable: repository
  31. description: "Docker image repository"
  32. label: "Image repository"
  33. schema:
  34. type: string
  35. default: "nextcloud"
  36. required: true
  37. - variable: tag
  38. description: "Tag to use for specified image"
  39. label: "Image Tag"
  40. schema:
  41. type: string
  42. default: "latest"
  43. - variable: pullPolicy
  44. description: "Docker Image Pull Policy"
  45. label: "Image Pull Policy"
  46. schema:
  47. type: string
  48. default: "IfNotPresent"
  49. enum:
  50. - value: "IfNotPresent"
  51. description: "Only pull image if not present on host"
  52. - value: "Always"
  53. description: "Always pull image even if present on host"
  54. - value: "Never"
  55. description: "Never pull image even if it's not present on host"
  56. - variable: nextcloud
  57. description: "Nextcloud configuration details"
  58. label: "Nextcloud Configuration"
  59. group: "Nextcloud Configuration"
  60. schema:
  61. type: dict
  62. required: true
  63. additional_attrs: true
  64. attrs:
  65. - variable: host
  66. description: "Nextcloud host to create application URLs"
  67. label: "Nextcloud host"
  68. schema:
  69. type: string
  70. $ref:
  71. - "definitions/nodeIP"
  72. - variable: username
  73. label: "Username"
  74. schema:
  75. type: string
  76. default: "admin"
  77. required: true
  78. - variable: password
  79. label: "Password"
  80. schema:
  81. type: string
  82. private: true
  83. default: "changeme"
  84. required: true
  85. - variable: datadir
  86. label: "Nextcloud data directory"
  87. schema:
  88. type: path
  89. default: "/var/www/html/data"
  90. required: true
  91. - variable: strategy
  92. label: "Nextcloud update strategy"
  93. schema:
  94. type: string
  95. default: "Recreate"
  96. enum:
  97. - value: "RollingUpdate"
  98. description: "Create new pods and then kill old ones"
  99. - value: "Recreate"
  100. description: "Kill existing pods before creating new ones"
  101. - variable: service
  102. description: "Nextcloud Service Configuration"
  103. label: "Nextcloud Service Configuration"
  104. group: "Nextcloud Configuration"
  105. schema:
  106. type: dict
  107. required: true
  108. attrs:
  109. - variable: nodePort
  110. label: "Node Port to use for Nextcloud"
  111. schema:
  112. type: int
  113. min: 9000
  114. max: 65535
  115. default: 9001
  116. required: true
  117. - variable: nextcloudDataHostPathEnabled
  118. label: "Configure Host Path for Nextcloud data"
  119. group: "Storage"
  120. schema:
  121. type: boolean
  122. default: false
  123. show_subquestions_if: true
  124. subquestions:
  125. - variable: nextcloudHostPath
  126. label: "Specify HostPath for Nextcloud data"
  127. schema:
  128. type: hostpath
  129. - variable: nextcloudDataVolume
  130. label: "Configure iXVolume"
  131. group: "Storage"
  132. schema:
  133. type: dict
  134. $ref:
  135. - "normalize/ixVolume"
  136. show_if: [["nextcloudDataHostPathEnabled", "=", false]]
  137. attrs:
  138. - variable: mountPath
  139. label: "Mount Path"
  140. description: "Path where the volume will be mounted inside the pod"
  141. schema:
  142. type: path
  143. editable: false
  144. default: "/var/www"
  145. - variable: datasetName
  146. label: "Dataset Name"
  147. schema:
  148. type: string
  149. default: "ix-nextcloud_data"
  150. editable: false
  151. - variable: postgresBackupVolume
  152. label: "Postgres Backup Volume"
  153. group: "Storage"
  154. schema:
  155. type: dict
  156. $ref:
  157. - "normalize/ixVolume"
  158. attrs:
  159. - variable: mountPath
  160. label: "Mount Path"
  161. schema:
  162. type: path
  163. editable: false
  164. default: "/postgres_backups"
  165. - variable: datasetName
  166. label: "Dataset Name"
  167. schema:
  168. type: string
  169. default: "ix-postgres_backups"
  170. editable: false
  171. - variable: postgresDataVolume
  172. label: "Postgresql Data Volume"
  173. group: "Storage"
  174. schema:
  175. type: dict
  176. $ref:
  177. - "normalize/ixVolume"
  178. attrs:
  179. - variable: mountPath
  180. label: "Mount Path"
  181. schema:
  182. type: path
  183. editable: false
  184. default: "/var/lib/postgresql/data"
  185. - variable: datasetName
  186. label: "Dataset Name"
  187. schema:
  188. type: string
  189. default: "ix-postgres_data"
  190. editable: false