questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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: nginxConfig
  64. description: "Configure Nginx for Nextcloud"
  65. label: "Nginx Configuration"
  66. group: "Nextcloud Configuration"
  67. schema:
  68. type: dict
  69. show_if: [["certificate", "!=", null]]
  70. attrs:
  71. - variable: proxy_timeouts
  72. label: "Proxy timeouts (Seconds)"
  73. description: |
  74. Applies the timeout to the following settings:</br>
  75. - proxy_connect_timeout</br>
  76. - proxy_send_timeout</br>
  77. - proxy_read_timeout</br>
  78. schema:
  79. type: int
  80. min: 30
  81. default: 60
  82. required: true
  83. - variable: nextcloud
  84. description: "Nextcloud configuration details"
  85. label: "Nextcloud Configuration"
  86. group: "Nextcloud Configuration"
  87. schema:
  88. type: dict
  89. required: true
  90. additional_attrs: true
  91. attrs:
  92. - variable: host
  93. description: "Nextcloud host to create application URLs"
  94. label: "Nextcloud host"
  95. schema:
  96. type: string
  97. $ref:
  98. - "definitions/nodeIP"
  99. - variable: username
  100. label: "Username"
  101. description: "Name of the Nextcloud admin user"
  102. schema:
  103. type: string
  104. default: "admin"
  105. required: true
  106. - variable: password
  107. label: "Password"
  108. description: "Password for the Nextcloud admin user"
  109. schema:
  110. type: string
  111. private: true
  112. default: "changeme"
  113. required: true
  114. - variable: datadir
  115. label: "Nextcloud data directory"
  116. description: "Configures the data directory where nextcloud stores all files from the users"
  117. schema:
  118. type: path
  119. default: "/var/www/html/data"
  120. required: true
  121. - variable: install_ffmpeg
  122. label: "Install ffmpeg"
  123. description: "Automatically Install ffmpeg when the container starts"
  124. schema:
  125. type: boolean
  126. default: false
  127. - variable: install_smbclient
  128. label: "Install smbclient"
  129. description: "Automatically Install smbclient when the container starts"
  130. schema:
  131. type: boolean
  132. default: false
  133. - variable: max_upload_size
  134. label: "Max Upload Size (Giga Bytes)"
  135. description: |
  136. Applies the timeout to the following settings:</br>
  137. - client_max_body_size in nginx</br>
  138. - post_max_size and upload_max_filesize in php</br>
  139. schema:
  140. type: int
  141. default: 3
  142. min: 1
  143. required: true
  144. - variable: opcache_memory_consumption
  145. label: "Opcache Memory Consumption (Mega Bytes)"
  146. description: "Configures the memory consumption of the opcache"
  147. schema:
  148. type: int
  149. min: 128
  150. max: 1024
  151. default: 128
  152. required: true
  153. - variable: cronjob
  154. description: "Setup cronjob for nextcloud"
  155. label: "Setup cronjob for nextcloud"
  156. group: "CronJob configuration"
  157. schema:
  158. type: dict
  159. attrs:
  160. - variable: enabled
  161. label: "Enable cronjobs for nextcloud"
  162. schema:
  163. type: boolean
  164. default: false
  165. show_subquestions_if: true
  166. subquestions:
  167. - variable: schedule
  168. label: Schedule
  169. schema:
  170. type: string
  171. default: "*/15 * * * *"
  172. empty: false
  173. # Update strategy
  174. - variable: updateStrategy
  175. description: "Upgrade Policy"
  176. label: "Update Strategy"
  177. group: "Scaling/Upgrade Policy"
  178. schema:
  179. type: string
  180. default: "Recreate"
  181. enum:
  182. - value: "RollingUpdate"
  183. description: "Create new pods and then kill old ones"
  184. - value: "Recreate"
  185. description: "Kill existing pods before creating new ones"
  186. - variable: service
  187. description: "Nextcloud Service Configuration"
  188. label: "Nextcloud Service Configuration"
  189. group: "Nextcloud Configuration"
  190. schema:
  191. type: dict
  192. required: true
  193. attrs:
  194. - variable: nodePort
  195. label: "Node Port to use for Nextcloud"
  196. schema:
  197. type: int
  198. min: 9000
  199. max: 65535
  200. default: 9001
  201. required: true
  202. - variable: appVolumeMounts
  203. label: "Nextcloud Storage"
  204. group: "Storage"
  205. schema:
  206. type: dict
  207. attrs:
  208. - variable: nextcloud-data
  209. label: "Nextcloud Data Volume"
  210. schema:
  211. type: dict
  212. attrs:
  213. - variable: datasetName
  214. label: "Nextcloud Data Volume Name"
  215. schema:
  216. type: string
  217. hidden: true
  218. $ref:
  219. - "normalize/ixVolume"
  220. show_if: [["hostPathEnabled", "=", false]]
  221. default: "ix-nextcloud_data"
  222. editable: false
  223. - variable: mountPath
  224. label: "Nextcloud Data Mount Path"
  225. description: "Path where the volume will be mounted inside the pod"
  226. schema:
  227. type: path
  228. hidden: true
  229. editable: false
  230. default: "/var/www"
  231. - variable: hostPathEnabled
  232. label: "Enable Host Path for Nextcloud Data Volume"
  233. schema:
  234. type: boolean
  235. default: false
  236. show_subquestions_if: true
  237. subquestions:
  238. - variable: hostPath
  239. label: "Host Path for Nextcloud Data Volume"
  240. schema:
  241. type: hostpath
  242. required: true
  243. - variable: extraAppVolumeMounts
  244. label: "Nextcloud Extra Host Path Volumes"
  245. group: "Storage"
  246. schema:
  247. type: list
  248. items:
  249. - variable: extraAppVolume
  250. label: "Nextcloud Host Path Volume"
  251. description: "Add an extra host path volume for nextcloud application"
  252. schema:
  253. type: dict
  254. attrs:
  255. - variable: mountPath
  256. label: "Mount Path in Pod"
  257. description: "Path where the volume will be mounted inside the pod"
  258. schema:
  259. type: path
  260. required: true
  261. - variable: hostPath
  262. label: "Host Path"
  263. description: "Host path"
  264. schema:
  265. type: hostpath
  266. required: true
  267. - variable: postgresAppVolumeMounts
  268. label: "Postgres Storage"
  269. group: "Storage"
  270. schema:
  271. type: dict
  272. attrs:
  273. - variable: postgres-data
  274. label: "Postgres Data Volume"
  275. schema:
  276. type: dict
  277. attrs:
  278. - variable: datasetName
  279. label: "Postgres Data Volume Name"
  280. schema:
  281. type: string
  282. hidden: true
  283. $ref:
  284. - "normalize/ixVolume"
  285. default: "ix-postgres_data"
  286. show_if: [["hostPathEnabled", "=", false]]
  287. editable: false
  288. - variable: mountPath
  289. label: "Postgresql Data Mount Path"
  290. description: "Path where the volume will be mounted inside the pod"
  291. schema:
  292. type: path
  293. hidden: true
  294. editable: false
  295. default: "/var/lib/postgresql/data"
  296. - variable: hostPathEnabled
  297. label: "Enable Host Path for Postgres Data Volume"
  298. schema:
  299. type: boolean
  300. default: false
  301. show_subquestions_if: true
  302. subquestions:
  303. - variable: hostPath
  304. label: "Host Path for Postgres Data Volume"
  305. schema:
  306. type: hostpath
  307. required: true
  308. - variable: postgres-backup
  309. label: "Postgres Backup Volume"
  310. schema:
  311. type: dict
  312. attrs:
  313. - variable: datasetName
  314. label: "Postgres Backup Volume Name"
  315. schema:
  316. type: string
  317. hidden: true
  318. $ref:
  319. - "normalize/ixVolume"
  320. default: "ix-postgres_backups"
  321. show_if: [["hostPathEnabled", "=", false]]
  322. editable: false
  323. - variable: mountPath
  324. label: "Postgresql Backup Mount Path"
  325. description: "Path where the volume will be mounted inside the pod"
  326. schema:
  327. type: path
  328. hidden: true
  329. editable: false
  330. default: "/postgres_backups"
  331. - variable: hostPathEnabled
  332. label: "Enable Host Path for Postgres Backup Volume"
  333. schema:
  334. type: boolean
  335. default: false
  336. show_subquestions_if: true
  337. subquestions:
  338. - variable: hostPath
  339. label: "Host Path for Postgres Backup Volume"
  340. schema:
  341. type: hostpath
  342. required: true
  343. - variable: enableResourceLimits
  344. label: "Enable Pod resource limits"
  345. group: "Resource Limits"
  346. schema:
  347. type: boolean
  348. default: false
  349. - variable: cpuLimit
  350. label: "CPU Limit"
  351. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  352. group: "Resource Limits"
  353. schema:
  354. type: string
  355. show_if: [["enableResourceLimits", "=", true]]
  356. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  357. default: "4000m"
  358. - variable: memLimit
  359. label: "Memory Limit"
  360. group: "Resource Limits"
  361. 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"
  362. schema:
  363. type: string
  364. show_if: [["enableResourceLimits", "=", true]]
  365. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  366. default: "8Gi"
  367. - variable: environmentVariables
  368. label: "Nextcloud environment"
  369. group: "Nextcloud Configuration"
  370. schema:
  371. type: list
  372. default: []
  373. items:
  374. - variable: environmentVariable
  375. label: "Environment Variable"
  376. schema:
  377. type: dict
  378. attrs:
  379. - variable: name
  380. label: "Name"
  381. schema:
  382. type: string
  383. - variable: value
  384. label: "Value"
  385. schema:
  386. type: string