questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. groups:
  2. - name: Wordpress Configuration
  3. description: Configure Wordpress
  4. - name: Network Configuration
  5. description: Configure Network for Wordpress
  6. - name: Storage Configuration
  7. description: Configure Storage for Wordpress
  8. - name: Resources Configuration
  9. description: Configure Resources for Wordpress
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. admin:
  20. protocols:
  21. - "$kubernetes-resource_configmap_portal_protocol"
  22. host:
  23. - "$kubernetes-resource_configmap_portal_host"
  24. ports:
  25. - "$kubernetes-resource_configmap_portal_port"
  26. path: /wp-admin
  27. questions:
  28. - variable: wpConfig
  29. label: ""
  30. group: Wordpress Configuration
  31. schema:
  32. type: dict
  33. attrs:
  34. - variable: enableCronJob
  35. label: Enable CronJob
  36. description: |
  37. Enable CronJob for Wordpress executed by Kubernetes scheduler.</br>
  38. This will also disable running cron on page load.
  39. schema:
  40. type: boolean
  41. default: false
  42. - variable: cronSchedule
  43. label: Cron Schedule
  44. description: Cron schedule for Wordpress CronJob.
  45. schema:
  46. type: string
  47. default: "*/15 * * * *"
  48. show_if: [["enableCronJob", "=", true]]
  49. required: true
  50. - variable: additionalEnvs
  51. label: Additional Environment Variables
  52. description: Configure additional environment variables for Wordpress.
  53. schema:
  54. type: list
  55. default: []
  56. items:
  57. - variable: env
  58. label: Environment Variable
  59. schema:
  60. type: dict
  61. attrs:
  62. - variable: name
  63. label: Name
  64. schema:
  65. type: string
  66. required: true
  67. - variable: value
  68. label: Value
  69. schema:
  70. type: string
  71. required: true
  72. - variable: wpNetwork
  73. label: ""
  74. group: Network Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: webPort
  79. label: Web Port
  80. description: The port for the Wordpress WebUI.
  81. schema:
  82. type: int
  83. default: 30040
  84. min: 9000
  85. max: 65535
  86. required: true
  87. - variable: wpStorage
  88. label: ""
  89. group: Storage Configuration
  90. schema:
  91. type: dict
  92. attrs:
  93. - variable: data
  94. label: Wordpress Data Storage
  95. description: The path to store Wordpress data.
  96. schema:
  97. type: dict
  98. attrs:
  99. - variable: type
  100. label: Type
  101. description: |
  102. ixVolume: Is dataset created automatically by the system.</br>
  103. Host Path: Is a path that already exists on the system.
  104. schema:
  105. type: string
  106. required: true
  107. immutable: true
  108. default: ixVolume
  109. enum:
  110. - value: hostPath
  111. description: Host Path (Path that already exists on the system)
  112. - value: ixVolume
  113. description: ixVolume (Dataset created automatically by the system)
  114. - variable: datasetName
  115. label: Dataset Name
  116. schema:
  117. type: string
  118. show_if: [["type", "=", "ixVolume"]]
  119. required: true
  120. hidden: true
  121. immutable: true
  122. default: data
  123. $ref:
  124. - "normalize/ixVolume"
  125. - variable: hostPath
  126. label: Host Path
  127. schema:
  128. type: hostpath
  129. show_if: [["type", "=", "hostPath"]]
  130. immutable: true
  131. required: true
  132. - variable: mariadbData
  133. label: Wordpress MariaDB Data Storage
  134. description: The path to store Wordpress MariaDB Data.
  135. schema:
  136. type: dict
  137. attrs:
  138. - variable: type
  139. label: Type
  140. description: |
  141. ixVolume: Is dataset created automatically by the system.</br>
  142. Host Path: Is a path that already exists on the system.
  143. schema:
  144. type: string
  145. required: true
  146. immutable: true
  147. default: ixVolume
  148. enum:
  149. - value: hostPath
  150. description: Host Path (Path that already exists on the system)
  151. - value: ixVolume
  152. description: ixVolume (Dataset created automatically by the system)
  153. - variable: datasetName
  154. label: Dataset Name
  155. schema:
  156. type: string
  157. show_if: [["type", "=", "ixVolume"]]
  158. required: true
  159. hidden: true
  160. immutable: true
  161. default: mariadbData
  162. $ref:
  163. - "normalize/ixVolume"
  164. - variable: hostPath
  165. label: Host Path
  166. schema:
  167. type: hostpath
  168. show_if: [["type", "=", "hostPath"]]
  169. immutable: true
  170. required: true
  171. - variable: mariadbBackup
  172. label: Wordpress MariaDB Backup Storage
  173. description: The path to store Wordpress MariaDB Backup.
  174. schema:
  175. type: dict
  176. attrs:
  177. - variable: type
  178. label: Type
  179. description: |
  180. ixVolume: Is dataset created automatically by the system.</br>
  181. Host Path: Is a path that already exists on the system.
  182. schema:
  183. type: string
  184. required: true
  185. immutable: true
  186. default: ixVolume
  187. enum:
  188. - value: hostPath
  189. description: Host Path (Path that already exists on the system)
  190. - value: ixVolume
  191. description: ixVolume (Dataset created automatically by the system)
  192. - variable: datasetName
  193. label: Dataset Name
  194. schema:
  195. type: string
  196. show_if: [["type", "=", "ixVolume"]]
  197. required: true
  198. hidden: true
  199. immutable: true
  200. default: mariadbBackup
  201. $ref:
  202. - "normalize/ixVolume"
  203. - variable: hostPath
  204. label: Host Path
  205. schema:
  206. type: hostpath
  207. show_if: [["type", "=", "hostPath"]]
  208. immutable: true
  209. required: true
  210. - variable: additionalStorages
  211. label: Additional Storage
  212. description: Additional storage for Wordpress.
  213. schema:
  214. type: list
  215. default: []
  216. items:
  217. - variable: storageEntry
  218. label: Storage Entry
  219. schema:
  220. type: dict
  221. attrs:
  222. - variable: type
  223. label: Type
  224. description: |
  225. ixVolume: Is dataset created automatically by the system.</br>
  226. Host Path: Is a path that already exists on the system.</br>
  227. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  228. schema:
  229. type: string
  230. required: true
  231. default: "ixVolume"
  232. immutable: true
  233. enum:
  234. - value: "hostPath"
  235. description: Host Path (Path that already exists on the system)
  236. - value: "ixVolume"
  237. description: ixVolume (Dataset created automatically by the system)
  238. - value: "smb-pv-pvc"
  239. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  240. - variable: mountPath
  241. label: Mount Path
  242. description: The path inside the container to mount the storage.
  243. schema:
  244. type: path
  245. required: true
  246. - variable: hostPath
  247. label: Host Path
  248. description: The host path to use for storage.
  249. schema:
  250. type: hostpath
  251. show_if: [["type", "=", "hostPath"]]
  252. required: true
  253. - variable: datasetName
  254. label: Dataset Name
  255. description: The name of the dataset to use for storage.
  256. schema:
  257. type: string
  258. show_if: [["type", "=", "ixVolume"]]
  259. required: true
  260. immutable: true
  261. default: "storage_entry"
  262. $ref:
  263. - "normalize/ixVolume"
  264. - variable: server
  265. label: Server
  266. description: The server for the SMB share.
  267. schema:
  268. type: string
  269. show_if: [["type", "=", "smb-pv-pvc"]]
  270. required: true
  271. - variable: share
  272. label: Share
  273. description: The share name for the SMB share.
  274. schema:
  275. type: string
  276. show_if: [["type", "=", "smb-pv-pvc"]]
  277. required: true
  278. - variable: domain
  279. label: Domain (Optional)
  280. description: The domain for the SMB share.
  281. schema:
  282. type: string
  283. show_if: [["type", "=", "smb-pv-pvc"]]
  284. - variable: username
  285. label: Username
  286. description: The username for the SMB share.
  287. schema:
  288. type: string
  289. show_if: [["type", "=", "smb-pv-pvc"]]
  290. required: true
  291. - variable: password
  292. label: Password
  293. description: The password for the SMB share.
  294. schema:
  295. type: string
  296. show_if: [["type", "=", "smb-pv-pvc"]]
  297. required: true
  298. private: true
  299. - variable: size
  300. label: Size (in Gi)
  301. description: The size of the volume quota.
  302. schema:
  303. type: int
  304. show_if: [["type", "=", "smb-pv-pvc"]]
  305. required: true
  306. min: 1
  307. default: 1
  308. - variable: resources
  309. label: ""
  310. group: Resources Configuration
  311. schema:
  312. type: dict
  313. attrs:
  314. - variable: limits
  315. label: Limits
  316. schema:
  317. type: dict
  318. attrs:
  319. - variable: cpu
  320. label: CPU
  321. description: CPU limit for Wordpress.
  322. schema:
  323. type: string
  324. max_length: 6
  325. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  326. valid_chars_error: |
  327. Valid CPU limit formats are</br>
  328. - Plain Integer - eg. 1</br>
  329. - Float - eg. 0.5</br>
  330. - Milicpu - eg. 500m
  331. default: "4000m"
  332. required: true
  333. - variable: memory
  334. label: Memory
  335. description: Memory limit for Wordpress.
  336. schema:
  337. type: string
  338. max_length: 12
  339. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  340. valid_chars_error: |
  341. Valid Memory limit formats are</br>
  342. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  343. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  344. - Plain Integer in bytes - eg. 1024</br>
  345. - Exponent - eg. 134e6
  346. default: "8Gi"
  347. required: true