questions.yaml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. hidden: true
  141. $ref:
  142. - "normalize/ixVolume"
  143. show_if: [["hostPathEnabled", "=", false]]
  144. default: "ix-nextcloud_data"
  145. editable: false
  146. - variable: mountPath
  147. label: "Nextcloud Data Mount Path"
  148. description: "Path where the volume will be mounted inside the pod"
  149. schema:
  150. type: path
  151. hidden: true
  152. editable: false
  153. default: "/var/www"
  154. - variable: hostPathEnabled
  155. label: "Enable Host Path for Nextcloud Data Volume"
  156. schema:
  157. type: boolean
  158. default: false
  159. show_subquestions_if: true
  160. subquestions:
  161. - variable: hostPath
  162. label: "Host Path for Nextcloud Data Volume"
  163. schema:
  164. type: hostpath
  165. required: true
  166. - variable: postgresAppVolumeMounts
  167. label: "Postgres Storage"
  168. group: "Storage"
  169. schema:
  170. type: dict
  171. hidden: true
  172. attrs:
  173. - variable: postgres-data
  174. label: "Postgres Data Volume"
  175. schema:
  176. type: dict
  177. attrs:
  178. - variable: datasetName
  179. label: "Postgres Data Volume Name"
  180. schema:
  181. type: string
  182. $ref:
  183. - "normalize/ixVolume"
  184. default: "ix-postgres_data"
  185. editable: false
  186. - variable: mountPath
  187. label: "Postgresql Data Mount Path"
  188. description: "Path where the volume will be mounted inside the pod"
  189. schema:
  190. type: path
  191. editable: false
  192. default: "/var/lib/postgresql/data"
  193. - variable: postgres-backup
  194. label: "Postgres Backup Volume"
  195. schema:
  196. type: dict
  197. attrs:
  198. - variable: datasetName
  199. label: "Postgres Backup Volume Name"
  200. schema:
  201. type: string
  202. $ref:
  203. - "normalize/ixVolume"
  204. default: "ix-postgres_backups"
  205. editable: false
  206. - variable: mountPath
  207. label: "Postgresql Backup Mount Path"
  208. description: "Path where the volume will be mounted inside the pod"
  209. schema:
  210. type: path
  211. editable: false
  212. default: "/postgres_backups"