questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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: "CronJob configuration"
  13. description: "Configure CronJob for nextcloud"
  14. - name: "Scaling/Upgrade Policy"
  15. description: "Configure how pods are replaced when configuration is upgraded"
  16. - name: "Advanced DNS Settings"
  17. description: "Configure DNS settings"
  18. - name: "Resource Limits"
  19. description: "Set CPU/memory limits for Kubernetes Pod"
  20. portals:
  21. web_portal:
  22. protocols:
  23. - "$kubernetes-resource_configmap_nginx-configuration_protocol"
  24. host:
  25. - "$variable-nextcloud.host"
  26. ports:
  27. - "$variable-service.nodePort"
  28. questions:
  29. - variable: dnsConfig
  30. label: "DNS Configuration"
  31. group: "Advanced DNS Settings"
  32. schema:
  33. type: dict
  34. attrs:
  35. - variable: options
  36. label: "DNS Options"
  37. schema:
  38. type: list
  39. items:
  40. - variable: optionsEntry
  41. label: "Option Entry Configuration"
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: name
  46. label: "Option Name"
  47. schema:
  48. type: string
  49. required: true
  50. - variable: value
  51. label: "Option Value"
  52. schema:
  53. type: string
  54. required: true
  55. - variable: certificate
  56. description: "Configure Certificate for Nextcloud"
  57. label: "Certificate Configuration"
  58. group: "Nextcloud Configuration"
  59. schema:
  60. type: int
  61. $ref:
  62. - "definitions/certificate"
  63. - variable: nextcloud
  64. description: "Nextcloud configuration details"
  65. label: "Nextcloud Configuration"
  66. group: "Nextcloud Configuration"
  67. schema:
  68. type: dict
  69. required: true
  70. additional_attrs: true
  71. attrs:
  72. - variable: host
  73. description: "Nextcloud host to create application URLs"
  74. label: "Nextcloud host"
  75. schema:
  76. type: string
  77. $ref:
  78. - "definitions/nodeIP"
  79. - variable: username
  80. label: "Username"
  81. description: "Name of the Nextcloud admin user"
  82. schema:
  83. type: string
  84. default: "admin"
  85. required: true
  86. - variable: password
  87. label: "Password"
  88. description: "Password for the Nextcloud admin user"
  89. schema:
  90. type: string
  91. private: true
  92. default: "changeme"
  93. required: true
  94. - variable: datadir
  95. label: "Nextcloud data directory"
  96. description: "Configures the data directory where nextcloud stores all files from the users"
  97. schema:
  98. type: path
  99. default: "/var/www/html/data"
  100. required: true
  101. - variable: cronjob
  102. description: "Setup cronjob for nextcloud"
  103. label: "Setup cronjob for nextcloud"
  104. group: "CronJob configuration"
  105. schema:
  106. type: dict
  107. attrs:
  108. - variable: enabled
  109. label: "Enable cronjobs for nextcloud"
  110. schema:
  111. type: boolean
  112. default: false
  113. show_subquestions_if: true
  114. subquestions:
  115. - variable: schedule
  116. label: Schedule
  117. schema:
  118. type: string
  119. default: "1 */24 * * *"
  120. empty: false
  121. # Update strategy
  122. - variable: updateStrategy
  123. description: "Upgrade Policy"
  124. label: "Update Strategy"
  125. group: "Scaling/Upgrade Policy"
  126. schema:
  127. type: string
  128. default: "Recreate"
  129. enum:
  130. - value: "RollingUpdate"
  131. description: "Create new pods and then kill old ones"
  132. - value: "Recreate"
  133. description: "Kill existing pods before creating new ones"
  134. - variable: service
  135. description: "Nextcloud Service Configuration"
  136. label: "Nextcloud Service Configuration"
  137. group: "Nextcloud Configuration"
  138. schema:
  139. type: dict
  140. required: true
  141. attrs:
  142. - variable: nodePort
  143. label: "Node Port to use for Nextcloud"
  144. schema:
  145. type: int
  146. min: 9000
  147. max: 65535
  148. default: 9001
  149. required: true
  150. - variable: appVolumeMounts
  151. label: "Nextcloud Storage"
  152. group: "Storage"
  153. schema:
  154. type: dict
  155. attrs:
  156. - variable: nextcloud-data
  157. label: "Nextcloud Data Volume"
  158. schema:
  159. type: dict
  160. attrs:
  161. - variable: datasetName
  162. label: "Nextcloud Data Volume Name"
  163. schema:
  164. type: string
  165. hidden: true
  166. $ref:
  167. - "normalize/ixVolume"
  168. show_if: [["hostPathEnabled", "=", false]]
  169. default: "ix-nextcloud_data"
  170. editable: false
  171. - variable: mountPath
  172. label: "Nextcloud Data Mount Path"
  173. description: "Path where the volume will be mounted inside the pod"
  174. schema:
  175. type: path
  176. hidden: true
  177. editable: false
  178. default: "/var/www"
  179. - variable: hostPathEnabled
  180. label: "Enable Host Path for Nextcloud Data Volume"
  181. schema:
  182. type: boolean
  183. default: false
  184. show_subquestions_if: true
  185. subquestions:
  186. - variable: hostPath
  187. label: "Host Path for Nextcloud Data Volume"
  188. schema:
  189. type: hostpath
  190. required: true
  191. - variable: extraAppVolumeMounts
  192. label: "Nextcloud Extra Host Path Volumes"
  193. group: "Storage"
  194. schema:
  195. type: list
  196. items:
  197. - variable: extraAppVolume
  198. label: "Nextcloud Host Path Volume"
  199. description: "Add an extra host path volume for nextcloud application"
  200. schema:
  201. type: dict
  202. attrs:
  203. - variable: mountPath
  204. label: "Mount Path in Pod"
  205. description: "Path where the volume will be mounted inside the pod"
  206. schema:
  207. type: path
  208. required: true
  209. - variable: hostPath
  210. label: "Host Path"
  211. description: "Host path"
  212. schema:
  213. type: hostpath
  214. required: true
  215. - variable: postgresAppVolumeMounts
  216. label: "Postgres Storage"
  217. group: "Storage"
  218. schema:
  219. type: dict
  220. attrs:
  221. - variable: postgres-data
  222. label: "Postgres Data Volume"
  223. schema:
  224. type: dict
  225. attrs:
  226. - variable: datasetName
  227. label: "Postgres Data Volume Name"
  228. schema:
  229. type: string
  230. hidden: true
  231. $ref:
  232. - "normalize/ixVolume"
  233. default: "ix-postgres_data"
  234. show_if: [["hostPathEnabled", "=", false]]
  235. editable: false
  236. - variable: mountPath
  237. label: "Postgresql Data Mount Path"
  238. description: "Path where the volume will be mounted inside the pod"
  239. schema:
  240. type: path
  241. hidden: true
  242. editable: false
  243. default: "/var/lib/postgresql/data"
  244. - variable: hostPathEnabled
  245. label: "Enable Host Path for Postgres Data Volume"
  246. schema:
  247. type: boolean
  248. default: false
  249. show_subquestions_if: true
  250. subquestions:
  251. - variable: hostPath
  252. label: "Host Path for Postgres Data Volume"
  253. schema:
  254. type: hostpath
  255. required: true
  256. - variable: postgres-backup
  257. label: "Postgres Backup Volume"
  258. schema:
  259. type: dict
  260. attrs:
  261. - variable: datasetName
  262. label: "Postgres Backup Volume Name"
  263. schema:
  264. type: string
  265. hidden: true
  266. $ref:
  267. - "normalize/ixVolume"
  268. default: "ix-postgres_backups"
  269. show_if: [["hostPathEnabled", "=", false]]
  270. editable: false
  271. - variable: mountPath
  272. label: "Postgresql Backup Mount Path"
  273. description: "Path where the volume will be mounted inside the pod"
  274. schema:
  275. type: path
  276. hidden: true
  277. editable: false
  278. default: "/postgres_backups"
  279. - variable: hostPathEnabled
  280. label: "Enable Host Path for Postgres Backup Volume"
  281. schema:
  282. type: boolean
  283. default: false
  284. show_subquestions_if: true
  285. subquestions:
  286. - variable: hostPath
  287. label: "Host Path for Postgres Backup Volume"
  288. schema:
  289. type: hostpath
  290. required: true
  291. - variable: enableResourceLimits
  292. label: "Enable Pod resource limits"
  293. group: "Resource Limits"
  294. schema:
  295. type: boolean
  296. default: false
  297. - variable: cpuLimit
  298. label: "CPU Limresource limitsit"
  299. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  300. group: "Resource Limits"
  301. schema:
  302. type: string
  303. show_if: [["enableResourceLimits", "=", true]]
  304. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  305. default: "4000m"
  306. - variable: memLimit
  307. label: "Memory Limit"
  308. group: "Resource Limits"
  309. description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi"
  310. schema:
  311. type: string
  312. show_if: [["enableResourceLimits", "=", true]]
  313. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  314. default: "8Gi"
  315. - variable: environmentVariables
  316. label: "Nextcloud environment"
  317. group: "Nextcloud Configuration"
  318. schema:
  319. type: list
  320. default: []
  321. items:
  322. - variable: environmentVariable
  323. label: "Environment Variable"
  324. schema:
  325. type: dict
  326. attrs:
  327. - variable: name
  328. label: "Name"
  329. schema:
  330. type: string
  331. - variable: value
  332. label: "Value"
  333. schema:
  334. type: string