questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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: max_execution_time
  145. label: "Max Execution Time (Seconds)"
  146. description: "Configures the max execution time of php"
  147. schema:
  148. type: int
  149. default: 30
  150. min: 30
  151. required: true
  152. - variable: php_memory_limit
  153. label: "PHP Memory Limit (Mega Bytes)"
  154. description: "Configures the memory limit of php"
  155. schema:
  156. type: int
  157. default: 512
  158. min: 128
  159. max: 4096
  160. required: true
  161. - variable: opcache_memory_consumption
  162. label: "Opcache Memory Consumption (Mega Bytes)"
  163. description: "Configures the memory consumption of the opcache"
  164. schema:
  165. type: int
  166. min: 128
  167. max: 1024
  168. default: 128
  169. required: true
  170. - variable: cronjob
  171. description: "Setup cronjob for nextcloud"
  172. label: "Setup cronjob for nextcloud"
  173. group: "CronJob configuration"
  174. schema:
  175. type: dict
  176. attrs:
  177. - variable: enabled
  178. label: "Enable cronjobs for nextcloud"
  179. schema:
  180. type: boolean
  181. default: false
  182. show_subquestions_if: true
  183. subquestions:
  184. - variable: schedule
  185. label: Schedule
  186. schema:
  187. type: string
  188. default: "*/15 * * * *"
  189. empty: false
  190. # Update strategy
  191. - variable: updateStrategy
  192. description: "Upgrade Policy"
  193. label: "Update Strategy"
  194. group: "Scaling/Upgrade Policy"
  195. schema:
  196. type: string
  197. default: "Recreate"
  198. enum:
  199. - value: "RollingUpdate"
  200. description: "Create new pods and then kill old ones"
  201. - value: "Recreate"
  202. description: "Kill existing pods before creating new ones"
  203. - variable: service
  204. description: "Nextcloud Service Configuration"
  205. label: "Nextcloud Service Configuration"
  206. group: "Nextcloud Configuration"
  207. schema:
  208. type: dict
  209. required: true
  210. attrs:
  211. - variable: nodePort
  212. label: "Node Port to use for Nextcloud"
  213. schema:
  214. type: int
  215. min: 9000
  216. max: 65535
  217. default: 9001
  218. required: true
  219. - variable: appVolumeMounts
  220. label: "Nextcloud Storage"
  221. group: "Storage"
  222. schema:
  223. type: dict
  224. attrs:
  225. - variable: nextcloud-data
  226. label: "Nextcloud Data Volume"
  227. schema:
  228. type: dict
  229. attrs:
  230. - variable: datasetName
  231. label: "Nextcloud Data Volume Name"
  232. schema:
  233. type: string
  234. hidden: true
  235. $ref:
  236. - "normalize/ixVolume"
  237. show_if: [["hostPathEnabled", "=", false]]
  238. default: "ix-nextcloud_data"
  239. editable: false
  240. - variable: mountPath
  241. label: "Nextcloud Data Mount Path"
  242. description: "Path where the volume will be mounted inside the pod"
  243. schema:
  244. type: path
  245. hidden: true
  246. editable: false
  247. default: "/var/www"
  248. - variable: hostPathEnabled
  249. label: "Enable Host Path for Nextcloud Data Volume"
  250. schema:
  251. type: boolean
  252. default: false
  253. show_subquestions_if: true
  254. subquestions:
  255. - variable: hostPath
  256. label: "Host Path for Nextcloud Data Volume"
  257. schema:
  258. type: hostpath
  259. required: true
  260. - variable: extraAppVolumeMounts
  261. label: "Nextcloud Extra Host Path Volumes"
  262. group: "Storage"
  263. schema:
  264. type: list
  265. items:
  266. - variable: extraAppVolume
  267. label: "Nextcloud Host Path Volume"
  268. description: "Add an extra host path volume for nextcloud application"
  269. schema:
  270. type: dict
  271. attrs:
  272. - variable: mountPath
  273. label: "Mount Path in Pod"
  274. description: "Path where the volume will be mounted inside the pod"
  275. schema:
  276. type: path
  277. required: true
  278. - variable: hostPath
  279. label: "Host Path"
  280. description: "Host path"
  281. schema:
  282. type: hostpath
  283. required: true
  284. - variable: postgresAppVolumeMounts
  285. label: "Postgres Storage"
  286. group: "Storage"
  287. schema:
  288. type: dict
  289. attrs:
  290. - variable: postgres-data
  291. label: "Postgres Data Volume"
  292. schema:
  293. type: dict
  294. attrs:
  295. - variable: datasetName
  296. label: "Postgres Data Volume Name"
  297. schema:
  298. type: string
  299. hidden: true
  300. $ref:
  301. - "normalize/ixVolume"
  302. default: "ix-postgres_data"
  303. show_if: [["hostPathEnabled", "=", false]]
  304. editable: false
  305. - variable: mountPath
  306. label: "Postgresql Data Mount Path"
  307. description: "Path where the volume will be mounted inside the pod"
  308. schema:
  309. type: path
  310. hidden: true
  311. editable: false
  312. default: "/var/lib/postgresql/data"
  313. - variable: hostPathEnabled
  314. label: "Enable Host Path for Postgres Data Volume"
  315. schema:
  316. type: boolean
  317. default: false
  318. show_subquestions_if: true
  319. subquestions:
  320. - variable: hostPath
  321. label: "Host Path for Postgres Data Volume"
  322. schema:
  323. type: hostpath
  324. required: true
  325. - variable: postgres-backup
  326. label: "Postgres Backup Volume"
  327. schema:
  328. type: dict
  329. attrs:
  330. - variable: datasetName
  331. label: "Postgres Backup Volume Name"
  332. schema:
  333. type: string
  334. hidden: true
  335. $ref:
  336. - "normalize/ixVolume"
  337. default: "ix-postgres_backups"
  338. show_if: [["hostPathEnabled", "=", false]]
  339. editable: false
  340. - variable: mountPath
  341. label: "Postgresql Backup Mount Path"
  342. description: "Path where the volume will be mounted inside the pod"
  343. schema:
  344. type: path
  345. hidden: true
  346. editable: false
  347. default: "/postgres_backups"
  348. - variable: hostPathEnabled
  349. label: "Enable Host Path for Postgres Backup Volume"
  350. schema:
  351. type: boolean
  352. default: false
  353. show_subquestions_if: true
  354. subquestions:
  355. - variable: hostPath
  356. label: "Host Path for Postgres Backup Volume"
  357. schema:
  358. type: hostpath
  359. required: true
  360. - variable: enableResourceLimits
  361. label: "Enable Pod resource limits"
  362. group: "Resource Limits"
  363. schema:
  364. type: boolean
  365. default: false
  366. - variable: cpuLimit
  367. label: "CPU Limit"
  368. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  369. group: "Resource Limits"
  370. schema:
  371. type: string
  372. show_if: [["enableResourceLimits", "=", true]]
  373. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  374. default: "4000m"
  375. - variable: memLimit
  376. label: "Memory Limit"
  377. group: "Resource Limits"
  378. 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"
  379. schema:
  380. type: string
  381. show_if: [["enableResourceLimits", "=", true]]
  382. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  383. default: "8Gi"
  384. - variable: environmentVariables
  385. label: "Nextcloud environment"
  386. group: "Nextcloud Configuration"
  387. schema:
  388. type: list
  389. default: []
  390. items:
  391. - variable: environmentVariable
  392. label: "Environment Variable"
  393. schema:
  394. type: dict
  395. attrs:
  396. - variable: name
  397. label: "Name"
  398. schema:
  399. type: string
  400. - variable: value
  401. label: "Value"
  402. schema:
  403. type: string