questions.yaml 11 KB

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