questions.yaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. groups:
  2. - name: Listmonk Configuration
  3. description: Configure Listmonk
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Listmonk
  6. - name: Network Configuration
  7. description: Configure Network for Listmonk
  8. - name: Storage Configuration
  9. description: Configure Storage for Listmonk
  10. - name: Resources Configuration
  11. description: Configure Resources for Listmonk
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: listmonkConfig
  23. label: ""
  24. group: Listmonk Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: adminUsername
  29. label: Admin Username (Optional)
  30. description: |
  31. The username for the Listmonk admin user.</br>
  32. Leave empty to disable authentication.
  33. schema:
  34. type: string
  35. default: ""
  36. - variable: adminPassword
  37. label: Admin Password
  38. description: The password for the Listmonk admin user.
  39. schema:
  40. type: string
  41. default: ""
  42. show_if: [["adminUsername", "!=", ""]]
  43. required: true
  44. - variable: additionalEnvs
  45. label: Additional Environment Variables
  46. description: Configure additional environment variables for Listmonk.
  47. schema:
  48. type: list
  49. default: []
  50. items:
  51. - variable: env
  52. label: Environment Variable
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: name
  57. label: Name
  58. schema:
  59. type: string
  60. required: true
  61. - variable: value
  62. label: Value
  63. schema:
  64. type: string
  65. required: true
  66. - variable: listmonkRunAs
  67. label: ""
  68. group: User and Group Configuration
  69. schema:
  70. type: dict
  71. attrs:
  72. - variable: user
  73. label: User ID
  74. description: The user id that Listmonk will run as.
  75. schema:
  76. type: int
  77. min: 2
  78. default: 568
  79. required: true
  80. - variable: group
  81. label: Group ID
  82. description: The group id that Listmonk will run as.
  83. schema:
  84. type: int
  85. min: 2
  86. default: 568
  87. required: true
  88. - variable: listmonkNetwork
  89. label: ""
  90. group: Network Configuration
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: webPort
  95. label: Web Port
  96. description: The port for the Listmonk Web UI.
  97. schema:
  98. type: int
  99. default: 30093
  100. min: 9000
  101. max: 65535
  102. required: true
  103. - variable: hostNetwork
  104. label: Host Network
  105. description: |
  106. Bind to the host network. It's recommended to keep this disabled.</br>
  107. schema:
  108. type: boolean
  109. default: false
  110. - variable: listmonkStorage
  111. label: ""
  112. group: Storage Configuration
  113. schema:
  114. type: dict
  115. attrs:
  116. - variable: uploads
  117. label: Listmonk Uploads Storage
  118. description: The path to store Listmonk uploads.
  119. schema:
  120. type: dict
  121. attrs:
  122. - variable: type
  123. label: Type
  124. description: |
  125. ixVolume: Is dataset created automatically by the system.</br>
  126. Host Path: Is a path that already exists on the system.
  127. schema:
  128. type: string
  129. required: true
  130. immutable: true
  131. default: ixVolume
  132. enum:
  133. - value: hostPath
  134. description: Host Path (Path that already exists on the system)
  135. - value: ixVolume
  136. description: ixVolume (Dataset created automatically by the system)
  137. - variable: ixVolumeConfig
  138. label: ixVolume Configuration
  139. description: The configuration for the ixVolume dataset.
  140. schema:
  141. type: dict
  142. show_if: [["type", "=", "ixVolume"]]
  143. $ref:
  144. - "normalize/ixVolume"
  145. attrs:
  146. - variable: aclEnable
  147. label: Enable ACL
  148. description: Enable ACL for the dataset.
  149. schema:
  150. type: boolean
  151. default: false
  152. - variable: datasetName
  153. label: Dataset Name
  154. description: The name of the dataset to use for storage.
  155. schema:
  156. type: string
  157. required: true
  158. immutable: true
  159. hidden: true
  160. default: uploads
  161. - variable: aclEntries
  162. label: ACL Configuration
  163. schema:
  164. type: dict
  165. show_if: [["aclEnable", "=", true]]
  166. attrs: []
  167. - variable: hostPathConfig
  168. label: Host Path Configuration
  169. schema:
  170. type: dict
  171. show_if: [["type", "=", "hostPath"]]
  172. attrs:
  173. - variable: aclEnable
  174. label: Enable ACL
  175. description: Enable ACL for the dataset.
  176. schema:
  177. type: boolean
  178. default: false
  179. - variable: acl
  180. label: ACL Configuration
  181. schema:
  182. type: dict
  183. show_if: [["aclEnable", "=", true]]
  184. attrs: []
  185. $ref:
  186. - "normalize/acl"
  187. - variable: hostPath
  188. label: Host Path
  189. description: The host path to use for storage.
  190. schema:
  191. type: hostpath
  192. show_if: [["aclEnable", "=", false]]
  193. immutable: true
  194. required: true
  195. - variable: pgData
  196. label: Listmonk Postgres Data Storage
  197. description: The path to store Listmonk Postgres Data.
  198. schema:
  199. type: dict
  200. attrs:
  201. - variable: type
  202. label: Type
  203. description: |
  204. ixVolume: Is dataset created automatically by the system.</br>
  205. Host Path: Is a path that already exists on the system.
  206. schema:
  207. type: string
  208. required: true
  209. immutable: true
  210. default: ixVolume
  211. enum:
  212. - value: hostPath
  213. description: Host Path (Path that already exists on the system)
  214. - value: ixVolume
  215. description: ixVolume (Dataset created automatically by the system)
  216. - variable: ixVolumeConfig
  217. label: ixVolume Configuration
  218. description: The configuration for the ixVolume dataset.
  219. schema:
  220. type: dict
  221. # Nothing to show for the user
  222. hidden: true
  223. show_if: [["type", "=", "ixVolume"]]
  224. $ref:
  225. - "normalize/ixVolume"
  226. attrs:
  227. - variable: aclEnable
  228. label: Enable ACL
  229. description: Enable ACL for the dataset.
  230. schema:
  231. type: boolean
  232. # Postgres does a CHMOD at startup
  233. # Which fails with ACL
  234. hidden: true
  235. default: false
  236. - variable: datasetName
  237. label: Dataset Name
  238. description: The name of the dataset to use for storage.
  239. schema:
  240. type: string
  241. required: true
  242. immutable: true
  243. hidden: true
  244. default: pgData
  245. - variable: aclEntries
  246. label: ACL Configuration
  247. schema:
  248. type: dict
  249. show_if: [["aclEnable", "=", true]]
  250. attrs: []
  251. - variable: hostPathConfig
  252. label: Host Path Configuration
  253. schema:
  254. type: dict
  255. show_if: [["type", "=", "hostPath"]]
  256. attrs:
  257. - variable: aclEnable
  258. label: Enable ACL
  259. description: Enable ACL for the dataset.
  260. schema:
  261. type: boolean
  262. # Postgres does a CHMOD at startup
  263. # Which fails with ACL
  264. hidden: true
  265. default: false
  266. - variable: acl
  267. label: ACL Configuration
  268. schema:
  269. type: dict
  270. show_if: [["aclEnable", "=", true]]
  271. attrs: []
  272. $ref:
  273. - "normalize/acl"
  274. - variable: hostPath
  275. label: Host Path
  276. description: The host path to use for storage.
  277. schema:
  278. type: hostpath
  279. show_if: [["aclEnable", "=", false]]
  280. immutable: true
  281. required: true
  282. - variable: pgBackup
  283. label: Listmonk Postgres Backup Storage
  284. description: The path to store Listmonk Postgres Backup.
  285. schema:
  286. type: dict
  287. attrs:
  288. - variable: type
  289. label: Type
  290. description: |
  291. ixVolume: Is dataset created automatically by the system.</br>
  292. Host Path: Is a path that already exists on the system.
  293. schema:
  294. type: string
  295. required: true
  296. immutable: true
  297. default: ixVolume
  298. enum:
  299. - value: hostPath
  300. description: Host Path (Path that already exists on the system)
  301. - value: ixVolume
  302. description: ixVolume (Dataset created automatically by the system)
  303. - variable: ixVolumeConfig
  304. label: ixVolume Configuration
  305. description: The configuration for the ixVolume dataset.
  306. schema:
  307. type: dict
  308. # Nothing to show for the user
  309. hidden: true
  310. show_if: [["type", "=", "ixVolume"]]
  311. $ref:
  312. - "normalize/ixVolume"
  313. attrs:
  314. - variable: aclEnable
  315. label: Enable ACL
  316. description: Enable ACL for the dataset.
  317. schema:
  318. type: boolean
  319. # Postgres does a CHMOD at startup
  320. # Which fails with ACL
  321. hidden: true
  322. default: false
  323. - variable: datasetName
  324. label: Dataset Name
  325. description: The name of the dataset to use for storage.
  326. schema:
  327. type: string
  328. required: true
  329. immutable: true
  330. hidden: true
  331. default: pgBackup
  332. - variable: aclEntries
  333. label: ACL Configuration
  334. schema:
  335. type: dict
  336. show_if: [["aclEnable", "=", true]]
  337. attrs: []
  338. - variable: hostPathConfig
  339. label: Host Path Configuration
  340. schema:
  341. type: dict
  342. show_if: [["type", "=", "hostPath"]]
  343. attrs:
  344. - variable: aclEnable
  345. label: Enable ACL
  346. description: Enable ACL for the dataset.
  347. schema:
  348. type: boolean
  349. # Postgres does a CHMOD at startup
  350. # Which fails with ACL
  351. hidden: true
  352. default: false
  353. - variable: acl
  354. label: ACL Configuration
  355. schema:
  356. type: dict
  357. show_if: [["aclEnable", "=", true]]
  358. attrs: []
  359. $ref:
  360. - "normalize/acl"
  361. - variable: hostPath
  362. label: Host Path
  363. description: The host path to use for storage.
  364. schema:
  365. type: hostpath
  366. show_if: [["aclEnable", "=", false]]
  367. immutable: true
  368. required: true
  369. - variable: additionalStorages
  370. label: Additional Storage
  371. description: Additional storage for Listmonk.
  372. schema:
  373. type: list
  374. default: []
  375. items:
  376. - variable: storageEntry
  377. label: Storage Entry
  378. schema:
  379. type: dict
  380. attrs:
  381. - variable: type
  382. label: Type
  383. description: |
  384. ixVolume: Is dataset created automatically by the system.</br>
  385. Host Path: Is a path that already exists on the system.</br>
  386. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  387. schema:
  388. type: string
  389. required: true
  390. default: "ixVolume"
  391. immutable: true
  392. enum:
  393. - value: "hostPath"
  394. description: Host Path (Path that already exists on the system)
  395. - value: "ixVolume"
  396. description: ixVolume (Dataset created automatically by the system)
  397. - value: "smb-pv-pvc"
  398. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  399. - variable: readOnly
  400. label: Read Only
  401. description: Mount the volume as read only.
  402. schema:
  403. type: boolean
  404. default: false
  405. - variable: mountPath
  406. label: Mount Path
  407. description: The path inside the container to mount the storage.
  408. schema:
  409. type: path
  410. required: true
  411. - variable: hostPathConfig
  412. label: Host Path Configuration
  413. schema:
  414. type: dict
  415. show_if: [["type", "=", "hostPath"]]
  416. attrs:
  417. - variable: aclEnable
  418. label: Enable ACL
  419. description: Enable ACL for the dataset.
  420. schema:
  421. type: boolean
  422. default: false
  423. - variable: acl
  424. label: ACL Configuration
  425. schema:
  426. type: dict
  427. show_if: [["aclEnable", "=", true]]
  428. attrs: []
  429. $ref:
  430. - "normalize/acl"
  431. - variable: hostPath
  432. label: Host Path
  433. description: The host path to use for storage.
  434. schema:
  435. type: hostpath
  436. show_if: [["aclEnable", "=", false]]
  437. immutable: true
  438. required: true
  439. - variable: ixVolumeConfig
  440. label: ixVolume Configuration
  441. description: The configuration for the ixVolume dataset.
  442. schema:
  443. type: dict
  444. show_if: [["type", "=", "ixVolume"]]
  445. $ref:
  446. - "normalize/ixVolume"
  447. attrs:
  448. - variable: aclEnable
  449. label: Enable ACL
  450. description: Enable ACL for the dataset.
  451. schema:
  452. type: boolean
  453. default: false
  454. - variable: datasetName
  455. label: Dataset Name
  456. description: The name of the dataset to use for storage.
  457. schema:
  458. type: string
  459. required: true
  460. immutable: true
  461. default: "storage_entry"
  462. - variable: aclEntries
  463. label: ACL Configuration
  464. schema:
  465. type: dict
  466. show_if: [["aclEnable", "=", true]]
  467. attrs: []
  468. - variable: smbConfig
  469. label: SMB Share Configuration
  470. description: The configuration for the SMB Share.
  471. schema:
  472. type: dict
  473. show_if: [["type", "=", "smb-pv-pvc"]]
  474. attrs:
  475. - variable: server
  476. label: Server
  477. description: The server for the SMB share.
  478. schema:
  479. type: string
  480. required: true
  481. - variable: share
  482. label: Share
  483. description: The share name for the SMB share.
  484. schema:
  485. type: string
  486. required: true
  487. - variable: domain
  488. label: Domain (Optional)
  489. description: The domain for the SMB share.
  490. schema:
  491. type: string
  492. - variable: username
  493. label: Username
  494. description: The username for the SMB share.
  495. schema:
  496. type: string
  497. required: true
  498. - variable: password
  499. label: Password
  500. description: The password for the SMB share.
  501. schema:
  502. type: string
  503. required: true
  504. private: true
  505. - variable: size
  506. label: Size (in Gi)
  507. description: The size of the volume quota.
  508. schema:
  509. type: int
  510. required: true
  511. min: 1
  512. default: 1
  513. - variable: resources
  514. group: Resources Configuration
  515. label: ""
  516. schema:
  517. type: dict
  518. attrs:
  519. - variable: limits
  520. label: Limits
  521. schema:
  522. type: dict
  523. attrs:
  524. - variable: cpu
  525. label: CPU
  526. description: CPU limit for Listmonk.
  527. schema:
  528. type: string
  529. max_length: 6
  530. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  531. valid_chars_error: |
  532. Valid CPU limit formats are</br>
  533. - Plain Integer - eg. 1</br>
  534. - Float - eg. 0.5</br>
  535. - Milicpu - eg. 500m
  536. default: "4000m"
  537. required: true
  538. - variable: memory
  539. label: Memory
  540. description: Memory limit for Listmonk.
  541. schema:
  542. type: string
  543. max_length: 12
  544. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  545. valid_chars_error: |
  546. Valid Memory limit formats are</br>
  547. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  548. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  549. - Plain Integer in bytes - eg. 1024</br>
  550. - Exponent - eg. 134e6
  551. default: "8Gi"
  552. required: true