questions.yaml 12 KB

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