questions.yaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. - name: "Advanced DNS Settings"
  15. description: "Configure DNS settings"
  16. portals:
  17. web_portal:
  18. protocols:
  19. - "$kubernetes-resource_configmap_nginx-configuration_protocol"
  20. host:
  21. - "$variable-nextcloud.host"
  22. ports:
  23. - "$variable-service.nodePort"
  24. questions:
  25. - variable: dnsConfig
  26. label: "DNS Configuration"
  27. group: "Advanced DNS Settings"
  28. schema:
  29. type: dict
  30. attrs:
  31. - variable: options
  32. label: "DNS Options"
  33. schema:
  34. type: list
  35. items:
  36. - variable: optionsEntry
  37. label: "Option Entry Configuration"
  38. schema:
  39. type: dict
  40. attrs:
  41. - variable: name
  42. label: "Option Name"
  43. schema:
  44. type: string
  45. required: true
  46. - variable: value
  47. label: "Option Value"
  48. schema:
  49. type: string
  50. required: true
  51. - variable: certificate
  52. description: "Configure Certificate for Nextcloud"
  53. label: "Certificate Configuration"
  54. group: "Nextcloud Configuration"
  55. schema:
  56. type: int
  57. $ref:
  58. - "definitions/certificate"
  59. - variable: nextcloud
  60. description: "Nextcloud configuration details"
  61. label: "Nextcloud Configuration"
  62. group: "Nextcloud Configuration"
  63. schema:
  64. type: dict
  65. required: true
  66. additional_attrs: true
  67. attrs:
  68. - variable: host
  69. description: "Nextcloud host to create application URLs"
  70. label: "Nextcloud host"
  71. schema:
  72. type: string
  73. $ref:
  74. - "definitions/nodeIP"
  75. - variable: username
  76. label: "Username"
  77. description: "Name of the Nextcloud admin user"
  78. schema:
  79. type: string
  80. default: "admin"
  81. required: true
  82. - variable: password
  83. label: "Password"
  84. description: "Password for the Nextcloud admin user"
  85. schema:
  86. type: string
  87. private: true
  88. default: "changeme"
  89. required: true
  90. - variable: datadir
  91. label: "Nextcloud data directory"
  92. description: "Configures the data directory where nextcloud stores all files from the users"
  93. schema:
  94. type: path
  95. default: "/var/www/html/data"
  96. required: true
  97. # Update strategy
  98. - variable: updateStrategy
  99. description: "Upgrade Policy"
  100. label: "Update Strategy"
  101. group: "Scaling/Upgrade Policy"
  102. schema:
  103. type: string
  104. default: "Recreate"
  105. enum:
  106. - value: "RollingUpdate"
  107. description: "Create new pods and then kill old ones"
  108. - value: "Recreate"
  109. description: "Kill existing pods before creating new ones"
  110. - variable: service
  111. description: "Nextcloud Service Configuration"
  112. label: "Nextcloud Service Configuration"
  113. group: "Nextcloud Configuration"
  114. schema:
  115. type: dict
  116. required: true
  117. attrs:
  118. - variable: nodePort
  119. label: "Node Port to use for Nextcloud"
  120. schema:
  121. type: int
  122. min: 9000
  123. max: 65535
  124. default: 9001
  125. required: true
  126. - variable: appVolumeMounts
  127. label: "Nextcloud Storage"
  128. group: "Storage"
  129. schema:
  130. type: dict
  131. attrs:
  132. - variable: nextcloud-data
  133. label: "Nextcloud Data Volume"
  134. schema:
  135. type: dict
  136. attrs:
  137. - variable: datasetName
  138. label: "Nextcloud Data Volume Name"
  139. schema:
  140. type: string
  141. hidden: true
  142. $ref:
  143. - "normalize/ixVolume"
  144. show_if: [["hostPathEnabled", "=", false]]
  145. default: "ix-nextcloud_data"
  146. editable: false
  147. - variable: mountPath
  148. label: "Nextcloud Data Mount Path"
  149. description: "Path where the volume will be mounted inside the pod"
  150. schema:
  151. type: path
  152. hidden: true
  153. editable: false
  154. default: "/var/www"
  155. - variable: hostPathEnabled
  156. label: "Enable Host Path for Nextcloud Data Volume"
  157. schema:
  158. type: boolean
  159. default: false
  160. show_subquestions_if: true
  161. subquestions:
  162. - variable: hostPath
  163. label: "Host Path for Nextcloud Data Volume"
  164. schema:
  165. type: hostpath
  166. required: true
  167. - variable: extraAppVolumeMounts
  168. label: "Nextcloud Extra Host Path Volumes"
  169. group: "Storage"
  170. schema:
  171. type: list
  172. items:
  173. - variable: extraAppVolume
  174. label: "Nextcloud Host Path Volume"
  175. description: "Add an extra host path volume for nextcloud application"
  176. schema:
  177. type: dict
  178. attrs:
  179. - variable: mountPath
  180. label: "Mount Path in Pod"
  181. description: "Path where the volume will be mounted inside the pod"
  182. schema:
  183. type: path
  184. required: true
  185. - variable: hostPath
  186. label: "Host Path"
  187. description: "Host path"
  188. schema:
  189. type: hostpath
  190. required: true
  191. - variable: postgresAppVolumeMounts
  192. label: "Postgres Storage"
  193. group: "Storage"
  194. schema:
  195. type: dict
  196. hidden: true
  197. attrs:
  198. - variable: postgres-data
  199. label: "Postgres Data Volume"
  200. schema:
  201. type: dict
  202. attrs:
  203. - variable: datasetName
  204. label: "Postgres Data Volume Name"
  205. schema:
  206. type: string
  207. $ref:
  208. - "normalize/ixVolume"
  209. default: "ix-postgres_data"
  210. editable: false
  211. - variable: mountPath
  212. label: "Postgresql Data Mount Path"
  213. description: "Path where the volume will be mounted inside the pod"
  214. schema:
  215. type: path
  216. editable: false
  217. default: "/var/lib/postgresql/data"
  218. - variable: postgres-backup
  219. label: "Postgres Backup Volume"
  220. schema:
  221. type: dict
  222. attrs:
  223. - variable: datasetName
  224. label: "Postgres Backup Volume Name"
  225. schema:
  226. type: string
  227. $ref:
  228. - "normalize/ixVolume"
  229. default: "ix-postgres_backups"
  230. editable: false
  231. - variable: mountPath
  232. label: "Postgresql Backup Mount Path"
  233. description: "Path where the volume will be mounted inside the pod"
  234. schema:
  235. type: path
  236. editable: false
  237. default: "/postgres_backups"