questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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: install_ffmpeg
  102. label: "Install ffmpeg"
  103. description: "Automatically Install ffmpeg when the container starts"
  104. schema:
  105. type: boolean
  106. default: false
  107. - variable: cronjob
  108. description: "Setup cronjob for nextcloud"
  109. label: "Setup cronjob for nextcloud"
  110. group: "CronJob configuration"
  111. schema:
  112. type: dict
  113. attrs:
  114. - variable: enabled
  115. label: "Enable cronjobs for nextcloud"
  116. schema:
  117. type: boolean
  118. default: false
  119. show_subquestions_if: true
  120. subquestions:
  121. - variable: schedule
  122. label: Schedule
  123. schema:
  124. type: string
  125. default: "1 */24 * * *"
  126. empty: false
  127. # Update strategy
  128. - variable: updateStrategy
  129. description: "Upgrade Policy"
  130. label: "Update Strategy"
  131. group: "Scaling/Upgrade Policy"
  132. schema:
  133. type: string
  134. default: "Recreate"
  135. enum:
  136. - value: "RollingUpdate"
  137. description: "Create new pods and then kill old ones"
  138. - value: "Recreate"
  139. description: "Kill existing pods before creating new ones"
  140. - variable: service
  141. description: "Nextcloud Service Configuration"
  142. label: "Nextcloud Service Configuration"
  143. group: "Nextcloud Configuration"
  144. schema:
  145. type: dict
  146. required: true
  147. attrs:
  148. - variable: nodePort
  149. label: "Node Port to use for Nextcloud"
  150. schema:
  151. type: int
  152. min: 9000
  153. max: 65535
  154. default: 9001
  155. required: true
  156. - variable: appVolumeMounts
  157. label: "Nextcloud Storage"
  158. group: "Storage"
  159. schema:
  160. type: dict
  161. attrs:
  162. - variable: nextcloud-data
  163. label: "Nextcloud Data Volume"
  164. schema:
  165. type: dict
  166. attrs:
  167. - variable: datasetName
  168. label: "Nextcloud Data Volume Name"
  169. schema:
  170. type: string
  171. hidden: true
  172. $ref:
  173. - "normalize/ixVolume"
  174. show_if: [["hostPathEnabled", "=", false]]
  175. default: "ix-nextcloud_data"
  176. editable: false
  177. - variable: mountPath
  178. label: "Nextcloud Data Mount Path"
  179. description: "Path where the volume will be mounted inside the pod"
  180. schema:
  181. type: path
  182. hidden: true
  183. editable: false
  184. default: "/var/www"
  185. - variable: hostPathEnabled
  186. label: "Enable Host Path for Nextcloud Data Volume"
  187. schema:
  188. type: boolean
  189. default: false
  190. show_subquestions_if: true
  191. subquestions:
  192. - variable: hostPath
  193. label: "Host Path for Nextcloud Data Volume"
  194. schema:
  195. type: hostpath
  196. required: true
  197. - variable: extraAppVolumeMounts
  198. label: "Nextcloud Extra Host Path Volumes"
  199. group: "Storage"
  200. schema:
  201. type: list
  202. items:
  203. - variable: extraAppVolume
  204. label: "Nextcloud Host Path Volume"
  205. description: "Add an extra host path volume for nextcloud application"
  206. schema:
  207. type: dict
  208. attrs:
  209. - variable: mountPath
  210. label: "Mount Path in Pod"
  211. description: "Path where the volume will be mounted inside the pod"
  212. schema:
  213. type: path
  214. required: true
  215. - variable: hostPath
  216. label: "Host Path"
  217. description: "Host path"
  218. schema:
  219. type: hostpath
  220. required: true
  221. - variable: postgresAppVolumeMounts
  222. label: "Postgres Storage"
  223. group: "Storage"
  224. schema:
  225. type: dict
  226. attrs:
  227. - variable: postgres-data
  228. label: "Postgres Data Volume"
  229. schema:
  230. type: dict
  231. attrs:
  232. - variable: datasetName
  233. label: "Postgres Data Volume Name"
  234. schema:
  235. type: string
  236. hidden: true
  237. $ref:
  238. - "normalize/ixVolume"
  239. default: "ix-postgres_data"
  240. show_if: [["hostPathEnabled", "=", false]]
  241. editable: false
  242. - variable: mountPath
  243. label: "Postgresql Data Mount Path"
  244. description: "Path where the volume will be mounted inside the pod"
  245. schema:
  246. type: path
  247. hidden: true
  248. editable: false
  249. default: "/var/lib/postgresql/data"
  250. - variable: hostPathEnabled
  251. label: "Enable Host Path for Postgres Data Volume"
  252. schema:
  253. type: boolean
  254. default: false
  255. show_subquestions_if: true
  256. subquestions:
  257. - variable: hostPath
  258. label: "Host Path for Postgres Data Volume"
  259. schema:
  260. type: hostpath
  261. required: true
  262. - variable: postgres-backup
  263. label: "Postgres Backup Volume"
  264. schema:
  265. type: dict
  266. attrs:
  267. - variable: datasetName
  268. label: "Postgres Backup Volume Name"
  269. schema:
  270. type: string
  271. hidden: true
  272. $ref:
  273. - "normalize/ixVolume"
  274. default: "ix-postgres_backups"
  275. show_if: [["hostPathEnabled", "=", false]]
  276. editable: false
  277. - variable: mountPath
  278. label: "Postgresql Backup Mount Path"
  279. description: "Path where the volume will be mounted inside the pod"
  280. schema:
  281. type: path
  282. hidden: true
  283. editable: false
  284. default: "/postgres_backups"
  285. - variable: hostPathEnabled
  286. label: "Enable Host Path for Postgres Backup Volume"
  287. schema:
  288. type: boolean
  289. default: false
  290. show_subquestions_if: true
  291. subquestions:
  292. - variable: hostPath
  293. label: "Host Path for Postgres Backup Volume"
  294. schema:
  295. type: hostpath
  296. required: true
  297. - variable: enableResourceLimits
  298. label: "Enable Pod resource limits"
  299. group: "Resource Limits"
  300. schema:
  301. type: boolean
  302. default: false
  303. - variable: cpuLimit
  304. label: "CPU Limresource limitsit"
  305. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  306. group: "Resource Limits"
  307. schema:
  308. type: string
  309. show_if: [["enableResourceLimits", "=", true]]
  310. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  311. default: "4000m"
  312. - variable: memLimit
  313. label: "Memory Limit"
  314. group: "Resource Limits"
  315. 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"
  316. schema:
  317. type: string
  318. show_if: [["enableResourceLimits", "=", true]]
  319. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  320. default: "8Gi"
  321. - variable: environmentVariables
  322. label: "Nextcloud environment"
  323. group: "Nextcloud Configuration"
  324. schema:
  325. type: list
  326. default: []
  327. items:
  328. - variable: environmentVariable
  329. label: "Environment Variable"
  330. schema:
  331. type: dict
  332. attrs:
  333. - variable: name
  334. label: "Name"
  335. schema:
  336. type: string
  337. - variable: value
  338. label: "Value"
  339. schema:
  340. type: string