questions.yaml 14 KB

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