questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. required: true
  131. - variable: mariadbData
  132. label: Wordpress MariaDB Data Storage
  133. description: The path to store Wordpress MariaDB Data.
  134. schema:
  135. type: dict
  136. attrs:
  137. - variable: type
  138. label: Type
  139. description: |
  140. ixVolume: Is dataset created automatically by the system.</br>
  141. Host Path: Is a path that already exists on the system.
  142. schema:
  143. type: string
  144. required: true
  145. immutable: true
  146. default: ixVolume
  147. enum:
  148. - value: hostPath
  149. description: Host Path (Path that already exists on the system)
  150. - value: ixVolume
  151. description: ixVolume (Dataset created automatically by the system)
  152. - variable: datasetName
  153. label: Dataset Name
  154. schema:
  155. type: string
  156. show_if: [["type", "=", "ixVolume"]]
  157. required: true
  158. hidden: true
  159. immutable: true
  160. default: mariadbData
  161. $ref:
  162. - "normalize/ixVolume"
  163. - variable: hostPath
  164. label: Host Path
  165. schema:
  166. type: hostpath
  167. show_if: [["type", "=", "hostPath"]]
  168. required: true
  169. - variable: mariadbBackup
  170. label: Wordpress MariaDB Backup Storage
  171. description: The path to store Wordpress MariaDB Backup.
  172. schema:
  173. type: dict
  174. attrs:
  175. - variable: type
  176. label: Type
  177. description: |
  178. ixVolume: Is dataset created automatically by the system.</br>
  179. Host Path: Is a path that already exists on the system.
  180. schema:
  181. type: string
  182. required: true
  183. immutable: true
  184. default: ixVolume
  185. enum:
  186. - value: hostPath
  187. description: Host Path (Path that already exists on the system)
  188. - value: ixVolume
  189. description: ixVolume (Dataset created automatically by the system)
  190. - variable: datasetName
  191. label: Dataset Name
  192. schema:
  193. type: string
  194. show_if: [["type", "=", "ixVolume"]]
  195. required: true
  196. hidden: true
  197. immutable: true
  198. default: mariadbBackup
  199. $ref:
  200. - "normalize/ixVolume"
  201. - variable: hostPath
  202. label: Host Path
  203. schema:
  204. type: hostpath
  205. show_if: [["type", "=", "hostPath"]]
  206. required: true
  207. - variable: additionalStorages
  208. label: Additional Storage
  209. description: Additional storage for Wordpress.
  210. schema:
  211. type: list
  212. default: []
  213. items:
  214. - variable: storageEntry
  215. label: Storage Entry
  216. schema:
  217. type: dict
  218. attrs:
  219. - variable: type
  220. label: Type
  221. description: |
  222. ixVolume: Is dataset created automatically by the system.</br>
  223. Host Path: Is a path that already exists on the system.</br>
  224. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  225. schema:
  226. type: string
  227. required: true
  228. default: "ixVolume"
  229. immutable: true
  230. enum:
  231. - value: "hostPath"
  232. description: Host Path (Path that already exists on the system)
  233. - value: "ixVolume"
  234. description: ixVolume (Dataset created automatically by the system)
  235. - value: "smb-pv-pvc"
  236. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  237. - variable: mountPath
  238. label: Mount Path
  239. description: The path inside the container to mount the storage.
  240. schema:
  241. type: path
  242. required: true
  243. - variable: hostPath
  244. label: Host Path
  245. description: The host path to use for storage.
  246. schema:
  247. type: hostpath
  248. show_if: [["type", "=", "hostPath"]]
  249. required: true
  250. - variable: datasetName
  251. label: Dataset Name
  252. description: The name of the dataset to use for storage.
  253. schema:
  254. type: string
  255. show_if: [["type", "=", "ixVolume"]]
  256. required: true
  257. immutable: true
  258. default: "storage_entry"
  259. $ref:
  260. - "normalize/ixVolume"
  261. - variable: server
  262. label: Server
  263. description: The server for the SMB share.
  264. schema:
  265. type: string
  266. show_if: [["type", "=", "smb-pv-pvc"]]
  267. required: true
  268. - variable: share
  269. label: Share
  270. description: The share name for the SMB share.
  271. schema:
  272. type: string
  273. show_if: [["type", "=", "smb-pv-pvc"]]
  274. required: true
  275. - variable: domain
  276. label: Domain (Optional)
  277. description: The domain for the SMB share.
  278. schema:
  279. type: string
  280. show_if: [["type", "=", "smb-pv-pvc"]]
  281. - variable: username
  282. label: Username
  283. description: The username for the SMB share.
  284. schema:
  285. type: string
  286. show_if: [["type", "=", "smb-pv-pvc"]]
  287. required: true
  288. - variable: password
  289. label: Password
  290. description: The password for the SMB share.
  291. schema:
  292. type: string
  293. show_if: [["type", "=", "smb-pv-pvc"]]
  294. required: true
  295. private: true
  296. - variable: size
  297. label: Size (in Gi)
  298. description: The size of the volume quota.
  299. schema:
  300. type: int
  301. show_if: [["type", "=", "smb-pv-pvc"]]
  302. required: true
  303. min: 1
  304. default: 1
  305. - variable: resources
  306. label: ""
  307. group: Resources Configuration
  308. schema:
  309. type: dict
  310. attrs:
  311. - variable: limits
  312. label: Limits
  313. schema:
  314. type: dict
  315. attrs:
  316. - variable: cpu
  317. label: CPU
  318. description: CPU limit for Wordpress.
  319. schema:
  320. type: string
  321. max_length: 6
  322. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  323. valid_chars_error: |
  324. Valid CPU limit formats are</br>
  325. - Plain Integer - eg. 1</br>
  326. - Float - eg. 0.5</br>
  327. - Milicpu - eg. 500m
  328. default: "4000m"
  329. required: true
  330. - variable: memory
  331. label: Memory
  332. description: Memory limit for Wordpress.
  333. schema:
  334. type: string
  335. max_length: 12
  336. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  337. valid_chars_error: |
  338. Valid Memory limit formats are</br>
  339. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  340. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  341. - Plain Integer in bytes - eg. 1024</br>
  342. - Exponent - eg. 134e6
  343. default: "8Gi"
  344. required: true