questions.yaml 22 KB

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