questions.yaml 7.4 KB

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