questions.yaml 6.8 KB

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