questions.yaml 26 KB

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