questions.yaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  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: ixVolumeConfig
  115. label: ixVolume Configuration
  116. description: The configuration for the ixVolume dataset.
  117. schema:
  118. type: dict
  119. show_if: [["type", "=", "ixVolume"]]
  120. $ref:
  121. - "normalize/ixVolume"
  122. attrs:
  123. - variable: aclEnable
  124. label: Enable ACL
  125. description: Enable ACL for the dataset.
  126. schema:
  127. type: boolean
  128. default: false
  129. - variable: datasetName
  130. label: Dataset Name
  131. description: The name of the dataset to use for storage.
  132. schema:
  133. type: string
  134. required: true
  135. immutable: true
  136. hidden: true
  137. default: "data"
  138. - variable: aclEntries
  139. label: ACL Configuration
  140. schema:
  141. type: dict
  142. show_if: [["aclEnable", "=", true]]
  143. attrs: []
  144. - variable: hostPathConfig
  145. label: Host Path Configuration
  146. schema:
  147. type: dict
  148. show_if: [["type", "=", "hostPath"]]
  149. attrs:
  150. - variable: aclEnable
  151. label: Enable ACL
  152. description: Enable ACL for the dataset.
  153. schema:
  154. type: boolean
  155. default: false
  156. - variable: acl
  157. label: ACL Configuration
  158. schema:
  159. type: dict
  160. show_if: [["aclEnable", "=", true]]
  161. attrs: []
  162. $ref:
  163. - "normalize/acl"
  164. - variable: hostPath
  165. label: Host Path
  166. description: The host path to use for storage.
  167. schema:
  168. type: hostpath
  169. show_if: [["aclEnable", "=", false]]
  170. required: true
  171. - variable: mariadbData
  172. label: Wordpress MariaDB Data Storage
  173. description: The path to store Wordpress MariaDB Data.
  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: ixVolumeConfig
  193. label: ixVolume Configuration
  194. description: The configuration for the ixVolume dataset.
  195. schema:
  196. type: dict
  197. # Nothing to show for the user
  198. hidden: true
  199. show_if: [["type", "=", "ixVolume"]]
  200. $ref:
  201. - "normalize/ixVolume"
  202. attrs:
  203. - variable: aclEnable
  204. label: Enable ACL
  205. description: Enable ACL for the dataset.
  206. schema:
  207. type: boolean
  208. # MariaDB does a CHMOD at startup
  209. # Which fails with ACL
  210. hidden: true
  211. default: false
  212. - variable: datasetName
  213. label: Dataset Name
  214. description: The name of the dataset to use for storage.
  215. schema:
  216. type: string
  217. required: true
  218. immutable: true
  219. hidden: true
  220. default: mariadbData
  221. - variable: aclEntries
  222. label: ACL Configuration
  223. schema:
  224. type: dict
  225. show_if: [["aclEnable", "=", true]]
  226. attrs: []
  227. - variable: hostPathConfig
  228. label: Host Path Configuration
  229. schema:
  230. type: dict
  231. show_if: [["type", "=", "hostPath"]]
  232. attrs:
  233. - variable: aclEnable
  234. label: Enable ACL
  235. description: Enable ACL for the dataset.
  236. schema:
  237. type: boolean
  238. # MariaDB does a CHMOD at startup
  239. # Which fails with ACL
  240. hidden: true
  241. default: false
  242. - variable: acl
  243. label: ACL Configuration
  244. schema:
  245. type: dict
  246. show_if: [["aclEnable", "=", true]]
  247. attrs: []
  248. $ref:
  249. - "normalize/acl"
  250. - variable: hostPath
  251. label: Host Path
  252. description: The host path to use for storage.
  253. schema:
  254. type: hostpath
  255. show_if: [["aclEnable", "=", false]]
  256. required: true
  257. - variable: mariadbBackup
  258. label: Wordpress MariaDB Backup Storage
  259. description: The path to store Wordpress MariaDB Backup.
  260. schema:
  261. type: dict
  262. attrs:
  263. - variable: type
  264. label: Type
  265. description: |
  266. ixVolume: Is dataset created automatically by the system.</br>
  267. Host Path: Is a path that already exists on the system.
  268. schema:
  269. type: string
  270. required: true
  271. immutable: true
  272. default: ixVolume
  273. enum:
  274. - value: hostPath
  275. description: Host Path (Path that already exists on the system)
  276. - value: ixVolume
  277. description: ixVolume (Dataset created automatically by the system)
  278. - variable: ixVolumeConfig
  279. label: ixVolume Configuration
  280. description: The configuration for the ixVolume dataset.
  281. schema:
  282. type: dict
  283. # Nothing to show for the user
  284. hidden: true
  285. show_if: [["type", "=", "ixVolume"]]
  286. $ref:
  287. - "normalize/ixVolume"
  288. attrs:
  289. - variable: aclEnable
  290. label: Enable ACL
  291. description: Enable ACL for the dataset.
  292. schema:
  293. type: boolean
  294. # MariaDB does a CHMOD at startup
  295. # Which fails with ACL
  296. hidden: true
  297. default: false
  298. - variable: datasetName
  299. label: Dataset Name
  300. description: The name of the dataset to use for storage.
  301. schema:
  302. type: string
  303. required: true
  304. immutable: true
  305. hidden: true
  306. default: mariadbBackup
  307. - variable: aclEntries
  308. label: ACL Configuration
  309. schema:
  310. type: dict
  311. show_if: [["aclEnable", "=", true]]
  312. attrs: []
  313. - variable: hostPathConfig
  314. label: Host Path Configuration
  315. schema:
  316. type: dict
  317. show_if: [["type", "=", "hostPath"]]
  318. attrs:
  319. - variable: aclEnable
  320. label: Enable ACL
  321. description: Enable ACL for the dataset.
  322. schema:
  323. type: boolean
  324. # MariaDB does a CHMOD at startup
  325. # Which fails with ACL
  326. hidden: true
  327. default: false
  328. - variable: acl
  329. label: ACL Configuration
  330. schema:
  331. type: dict
  332. show_if: [["aclEnable", "=", true]]
  333. attrs: []
  334. $ref:
  335. - "normalize/acl"
  336. - variable: hostPath
  337. label: Host Path
  338. description: The host path to use for storage.
  339. schema:
  340. type: hostpath
  341. show_if: [["aclEnable", "=", false]]
  342. required: true
  343. - variable: additionalStorages
  344. label: Additional Storage
  345. description: Additional storage for Wordpress.
  346. schema:
  347. type: list
  348. default: []
  349. items:
  350. - variable: storageEntry
  351. label: Storage Entry
  352. schema:
  353. type: dict
  354. attrs:
  355. - variable: type
  356. label: Type
  357. description: |
  358. ixVolume: Is dataset created automatically by the system.</br>
  359. Host Path: Is a path that already exists on the system.</br>
  360. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  361. schema:
  362. type: string
  363. required: true
  364. default: "ixVolume"
  365. immutable: true
  366. enum:
  367. - value: "hostPath"
  368. description: Host Path (Path that already exists on the system)
  369. - value: "ixVolume"
  370. description: ixVolume (Dataset created automatically by the system)
  371. - value: "smb-pv-pvc"
  372. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  373. - variable: readOnly
  374. label: Read Only
  375. description: Mount the volume as read only.
  376. schema:
  377. type: boolean
  378. default: false
  379. - variable: mountPath
  380. label: Mount Path
  381. description: The path inside the container to mount the storage.
  382. schema:
  383. type: path
  384. required: true
  385. - variable: hostPathConfig
  386. label: Host Path Configuration
  387. schema:
  388. type: dict
  389. show_if: [["type", "=", "hostPath"]]
  390. attrs:
  391. - variable: aclEnable
  392. label: Enable ACL
  393. description: Enable ACL for the dataset.
  394. schema:
  395. type: boolean
  396. default: false
  397. - variable: acl
  398. label: ACL Configuration
  399. schema:
  400. type: dict
  401. show_if: [["aclEnable", "=", true]]
  402. attrs: []
  403. $ref:
  404. - "normalize/acl"
  405. - variable: hostPath
  406. label: Host Path
  407. description: The host path to use for storage.
  408. schema:
  409. type: hostpath
  410. show_if: [["aclEnable", "=", false]]
  411. required: true
  412. - variable: ixVolumeConfig
  413. label: ixVolume Configuration
  414. description: The configuration for the ixVolume dataset.
  415. schema:
  416. type: dict
  417. show_if: [["type", "=", "ixVolume"]]
  418. $ref:
  419. - "normalize/ixVolume"
  420. attrs:
  421. - variable: aclEnable
  422. label: Enable ACL
  423. description: Enable ACL for the dataset.
  424. schema:
  425. type: boolean
  426. default: false
  427. - variable: datasetName
  428. label: Dataset Name
  429. description: The name of the dataset to use for storage.
  430. schema:
  431. type: string
  432. required: true
  433. immutable: true
  434. default: "storage_entry"
  435. - variable: aclEntries
  436. label: ACL Configuration
  437. schema:
  438. type: dict
  439. show_if: [["aclEnable", "=", true]]
  440. attrs: []
  441. - variable: smbConfig
  442. label: SMB Share Configuration
  443. description: The configuration for the SMB Share.
  444. schema:
  445. type: dict
  446. show_if: [["type", "=", "smb-pv-pvc"]]
  447. attrs:
  448. - variable: server
  449. label: Server
  450. description: The server for the SMB share.
  451. schema:
  452. type: string
  453. required: true
  454. - variable: share
  455. label: Share
  456. description: The share name for the SMB share.
  457. schema:
  458. type: string
  459. required: true
  460. - variable: domain
  461. label: Domain (Optional)
  462. description: The domain for the SMB share.
  463. schema:
  464. type: string
  465. - variable: username
  466. label: Username
  467. description: The username for the SMB share.
  468. schema:
  469. type: string
  470. required: true
  471. - variable: password
  472. label: Password
  473. description: The password for the SMB share.
  474. schema:
  475. type: string
  476. required: true
  477. private: true
  478. - variable: size
  479. label: Size (in Gi)
  480. description: The size of the volume quota.
  481. schema:
  482. type: int
  483. required: true
  484. min: 1
  485. default: 1
  486. - variable: resources
  487. label: ""
  488. group: Resources Configuration
  489. schema:
  490. type: dict
  491. attrs:
  492. - variable: limits
  493. label: Limits
  494. schema:
  495. type: dict
  496. attrs:
  497. - variable: cpu
  498. label: CPU
  499. description: CPU limit for Wordpress.
  500. schema:
  501. type: string
  502. max_length: 6
  503. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  504. valid_chars_error: |
  505. Valid CPU limit formats are</br>
  506. - Plain Integer - eg. 1</br>
  507. - Float - eg. 0.5</br>
  508. - Milicpu - eg. 500m
  509. default: "4000m"
  510. required: true
  511. - variable: memory
  512. label: Memory
  513. description: Memory limit for Wordpress.
  514. schema:
  515. type: string
  516. max_length: 12
  517. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  518. valid_chars_error: |
  519. Valid Memory limit formats are</br>
  520. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  521. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  522. - Plain Integer in bytes - eg. 1024</br>
  523. - Exponent - eg. 134e6
  524. default: "8Gi"
  525. required: true