questions.yaml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  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: Network Configuration
  7. description: Configure Network for Home Assistant
  8. - name: Storage Configuration
  9. description: Configure Storage for Home Assistant
  10. - name: Labels Configuration
  11. description: Configure Labels for Home Assistant
  12. - name: Resources Configuration
  13. description: Configure Resources for Home Assistant
  14. questions:
  15. - variable: TZ
  16. group: Home Assistant Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: home_assistant
  25. label: ""
  26. group: Home Assistant Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: postgres_image_selector
  31. label: Postgres Image (CAUTION)
  32. description: |
  33. If you are changing this after the postgres directory has been initialized,</br>
  34. STOP! and make sure you have a backup of your data.</br>
  35. Changing this will trigger an one way database upgrade.</br>
  36. You can only select newer versions of postgres.</br>
  37. Selecting an older version will refuse to start.</br>
  38. If something goes wrong, you will have to restore from backup.
  39. schema:
  40. type: string
  41. default: postgres_17_image
  42. required: true
  43. enum:
  44. # TODO: Remove postgres_13_image in the future
  45. - value: postgres_13_image
  46. description: Postgres 13
  47. - value: postgres_17_image
  48. description: Postgres 17
  49. - variable: db_password
  50. label: Database Password
  51. description: The password for Home Assistant.
  52. schema:
  53. type: string
  54. default: ""
  55. required: true
  56. private: true
  57. - variable: db_user
  58. label: Database User
  59. description: The user for the database.
  60. schema:
  61. type: string
  62. # This field is only here for backwards compatibility
  63. # new installations should not use this field (hence the hidden flag)
  64. hidden: true
  65. default: home-assistant
  66. required: true
  67. - variable: db_name
  68. label: Database Name
  69. description: The name of the database.
  70. schema:
  71. type: string
  72. # This field is only here for backwards compatibility
  73. # new installations should not use this field (hence the hidden flag)
  74. hidden: true
  75. default: home-assistant
  76. required: true
  77. - variable: devices
  78. label: Devices
  79. description: |
  80. Devices to use for Home Assistant.
  81. Eg: Host Device: /dev/ttyUSB0, Container Device: /dev/ttyACM0
  82. schema:
  83. type: list
  84. default: []
  85. items:
  86. - variable: device
  87. label: Device
  88. schema:
  89. type: dict
  90. attrs:
  91. - variable: host_device
  92. label: Host Device
  93. schema:
  94. type: string
  95. required: true
  96. - variable: container_device
  97. label: Container Device
  98. schema:
  99. type: string
  100. required: true
  101. - variable: additional_envs
  102. label: Additional Environment Variables
  103. schema:
  104. type: list
  105. default: []
  106. items:
  107. - variable: env
  108. label: Environment Variable
  109. schema:
  110. type: dict
  111. attrs:
  112. - variable: name
  113. label: Name
  114. schema:
  115. type: string
  116. required: true
  117. - variable: value
  118. label: Value
  119. schema:
  120. type: string
  121. - variable: run_as
  122. label: ""
  123. group: User and Group Configuration
  124. schema:
  125. type: dict
  126. attrs:
  127. - variable: user
  128. label: User ID
  129. description: The user id that Home Assistant files will be owned by.
  130. schema:
  131. type: int
  132. min: 568
  133. default: 568
  134. required: true
  135. - variable: group
  136. label: Group ID
  137. description: The group id that Home Assistant files will be owned by.
  138. schema:
  139. type: int
  140. min: 568
  141. default: 568
  142. required: true
  143. - variable: network
  144. label: ""
  145. group: Network Configuration
  146. schema:
  147. type: dict
  148. attrs:
  149. - variable: web_port
  150. label: WebUI Port
  151. schema:
  152. type: dict
  153. attrs:
  154. - variable: bind_mode
  155. label: Port Bind Mode
  156. description: |
  157. The port bind mode.</br>
  158. - Publish: The port will be published on the host for external access.</br>
  159. - Expose: The port will be exposed for inter-container communication.</br>
  160. - None: The port will not be exposed or published.</br>
  161. Note: If the Dockerfile defines an EXPOSE directive,
  162. the port will still be exposed for inter-container communication regardless of this setting.
  163. schema:
  164. type: string
  165. default: "published"
  166. enum:
  167. - value: "published"
  168. description: Publish port on the host for external access
  169. - value: "exposed"
  170. description: Expose port for inter-container communication
  171. - value: ""
  172. description: None
  173. - variable: port_number
  174. label: Port Number
  175. schema:
  176. type: int
  177. show_if: [["bind_mode", "=", "published"]]
  178. default: 30103
  179. min: 1
  180. max: 65535
  181. required: true
  182. - variable: host_ips
  183. label: Host IPs
  184. description: IPs on the host to bind this port
  185. schema:
  186. type: list
  187. show_if: [["bind_mode", "=", "published"]]
  188. default: []
  189. items:
  190. - variable: host_ip
  191. label: Host IP
  192. schema:
  193. type: string
  194. required: true
  195. $ref:
  196. - definitions/node_bind_ip
  197. - variable: additional_ports
  198. label: Additional Ports
  199. schema:
  200. type: list
  201. items:
  202. - variable: port
  203. label: Port
  204. schema:
  205. type: dict
  206. attrs:
  207. - variable: bind_mode
  208. label: Port Bind Mode
  209. description: |
  210. The port bind mode.</br>
  211. - Publish: The port will be published on the host for external access.</br>
  212. - Expose: The port will be exposed for inter-container communication.</br>
  213. schema:
  214. type: string
  215. default: "published"
  216. enum:
  217. - value: "published"
  218. description: Publish port on the host for external access
  219. - value: "exposed"
  220. description: Expose port for inter-container communication
  221. - variable: port_number
  222. label: Port Number
  223. schema:
  224. type: int
  225. min: 1
  226. max: 65535
  227. required: true
  228. - variable: container_port
  229. label: Container Port
  230. schema:
  231. type: int
  232. min: 1
  233. max: 65535
  234. required: true
  235. - variable: protocol
  236. label: Protocol
  237. schema:
  238. type: string
  239. required: true
  240. default: "tcp"
  241. enum:
  242. - value: "tcp"
  243. description: TCP
  244. - value: "udp"
  245. description: UDP
  246. - variable: host_ips
  247. label: Host IPs
  248. description: IPs on the host to bind this port
  249. schema:
  250. type: list
  251. show_if: [["bind_mode", "=", "published"]]
  252. default: []
  253. items:
  254. - variable: host_ip
  255. label: Host IP
  256. schema:
  257. type: string
  258. required: true
  259. $ref:
  260. - definitions/node_bind_ip
  261. - variable: dns_opts
  262. label: DNS Options
  263. description: |
  264. DNS options for the container.</br>
  265. Format: key:value</br>
  266. Example: attempts:3
  267. schema:
  268. type: list
  269. default: []
  270. items:
  271. - variable: option
  272. label: Option
  273. schema:
  274. type: string
  275. required: true
  276. - variable: certificate_id
  277. label: Certificate
  278. description: The certificate to use for Home Assistant.
  279. schema:
  280. type: int
  281. "null": true
  282. $ref:
  283. - "definitions/certificate"
  284. - variable: storage
  285. label: ""
  286. group: Storage Configuration
  287. schema:
  288. type: dict
  289. attrs:
  290. - variable: config
  291. label: Home Assistant Config Storage
  292. description: The path to store Home Assistant Config.
  293. schema:
  294. type: dict
  295. attrs:
  296. - variable: type
  297. label: Type
  298. description: |
  299. ixVolume: Is dataset created automatically by the system.</br>
  300. Host Path: Is a path that already exists on the system.
  301. schema:
  302. type: string
  303. required: true
  304. default: "ix_volume"
  305. enum:
  306. - value: "host_path"
  307. description: Host Path (Path that already exists on the system)
  308. - value: "ix_volume"
  309. description: ixVolume (Dataset created automatically by the system)
  310. - variable: ix_volume_config
  311. label: ixVolume Configuration
  312. description: The configuration for the ixVolume dataset.
  313. schema:
  314. type: dict
  315. show_if: [["type", "=", "ix_volume"]]
  316. $ref:
  317. - "normalize/ix_volume"
  318. attrs:
  319. - variable: acl_enable
  320. label: Enable ACL
  321. description: Enable ACL for the storage.
  322. schema:
  323. type: boolean
  324. default: false
  325. - variable: dataset_name
  326. label: Dataset Name
  327. description: The name of the dataset to use for storage.
  328. schema:
  329. type: string
  330. required: true
  331. hidden: true
  332. default: "config"
  333. - variable: acl_entries
  334. label: ACL Configuration
  335. schema:
  336. type: dict
  337. show_if: [["acl_enable", "=", true]]
  338. attrs: []
  339. - variable: host_path_config
  340. label: Host Path Configuration
  341. schema:
  342. type: dict
  343. show_if: [["type", "=", "host_path"]]
  344. attrs:
  345. - variable: acl_enable
  346. label: Enable ACL
  347. description: Enable ACL for the storage.
  348. schema:
  349. type: boolean
  350. default: false
  351. - variable: acl
  352. label: ACL Configuration
  353. schema:
  354. type: dict
  355. show_if: [["acl_enable", "=", true]]
  356. attrs: []
  357. $ref:
  358. - "normalize/acl"
  359. - variable: path
  360. label: Host Path
  361. description: The host path to use for storage.
  362. schema:
  363. type: hostpath
  364. show_if: [["acl_enable", "=", false]]
  365. required: true
  366. - variable: media
  367. label: Home Assistant Media Storage
  368. description: The path to store Home Assistant Media.
  369. schema:
  370. type: dict
  371. attrs:
  372. - variable: type
  373. label: Type
  374. description: |
  375. ixVolume: Is dataset created automatically by the system.</br>
  376. Host Path: Is a path that already exists on the system.
  377. schema:
  378. type: string
  379. required: true
  380. default: "ix_volume"
  381. enum:
  382. - value: "host_path"
  383. description: Host Path (Path that already exists on the system)
  384. - value: "ix_volume"
  385. description: ixVolume (Dataset created automatically by the system)
  386. - variable: ix_volume_config
  387. label: ixVolume Configuration
  388. description: The configuration for the ixVolume dataset.
  389. schema:
  390. type: dict
  391. show_if: [["type", "=", "ix_volume"]]
  392. $ref:
  393. - "normalize/ix_volume"
  394. attrs:
  395. - variable: acl_enable
  396. label: Enable ACL
  397. description: Enable ACL for the storage.
  398. schema:
  399. type: boolean
  400. default: false
  401. - variable: dataset_name
  402. label: Dataset Name
  403. description: The name of the dataset to use for storage.
  404. schema:
  405. type: string
  406. required: true
  407. hidden: true
  408. default: "media"
  409. - variable: acl_entries
  410. label: ACL Configuration
  411. schema:
  412. type: dict
  413. show_if: [["acl_enable", "=", true]]
  414. attrs: []
  415. - variable: host_path_config
  416. label: Host Path Configuration
  417. schema:
  418. type: dict
  419. show_if: [["type", "=", "host_path"]]
  420. attrs:
  421. - variable: acl_enable
  422. label: Enable ACL
  423. description: Enable ACL for the storage.
  424. schema:
  425. type: boolean
  426. default: false
  427. - variable: acl
  428. label: ACL Configuration
  429. schema:
  430. type: dict
  431. show_if: [["acl_enable", "=", true]]
  432. attrs: []
  433. $ref:
  434. - "normalize/acl"
  435. - variable: path
  436. label: Host Path
  437. description: The host path to use for storage.
  438. schema:
  439. type: hostpath
  440. show_if: [["acl_enable", "=", false]]
  441. required: true
  442. - variable: postgres_data
  443. label: Home Assistant Postgres Data Storage
  444. description: The path to store Home Assistant Postgres Data.
  445. schema:
  446. type: dict
  447. attrs:
  448. - variable: type
  449. label: Type
  450. description: |
  451. ixVolume: Is dataset created automatically by the system.</br>
  452. Host Path: Is a path that already exists on the system.
  453. schema:
  454. type: string
  455. required: true
  456. default: "ix_volume"
  457. enum:
  458. - value: "host_path"
  459. description: Host Path (Path that already exists on the system)
  460. - value: "ix_volume"
  461. description: ixVolume (Dataset created automatically by the system)
  462. - variable: ix_volume_config
  463. label: ixVolume Configuration
  464. description: The configuration for the ixVolume dataset.
  465. schema:
  466. type: dict
  467. show_if: [["type", "=", "ix_volume"]]
  468. $ref:
  469. - "normalize/ix_volume"
  470. attrs:
  471. - variable: acl_enable
  472. label: Enable ACL
  473. description: Enable ACL for the storage.
  474. schema:
  475. type: boolean
  476. default: false
  477. - variable: dataset_name
  478. label: Dataset Name
  479. description: The name of the dataset to use for storage.
  480. schema:
  481. type: string
  482. required: true
  483. hidden: true
  484. default: "postgres_data"
  485. - variable: acl_entries
  486. label: ACL Configuration
  487. schema:
  488. type: dict
  489. show_if: [["acl_enable", "=", true]]
  490. attrs: []
  491. - variable: host_path_config
  492. label: Host Path Configuration
  493. schema:
  494. type: dict
  495. show_if: [["type", "=", "host_path"]]
  496. attrs:
  497. - variable: acl_enable
  498. label: Enable ACL
  499. description: Enable ACL for the storage.
  500. schema:
  501. type: boolean
  502. default: false
  503. - variable: acl
  504. label: ACL Configuration
  505. schema:
  506. type: dict
  507. show_if: [["acl_enable", "=", true]]
  508. attrs: []
  509. $ref:
  510. - "normalize/acl"
  511. - variable: path
  512. label: Host Path
  513. description: The host path to use for storage.
  514. schema:
  515. type: hostpath
  516. show_if: [["acl_enable", "=", false]]
  517. required: true
  518. - variable: auto_permissions
  519. label: Automatic Permissions
  520. description: |
  521. Automatically set permissions for the host path.
  522. Enabling this, will check the top level directory,</br>
  523. If it finds incorrect permissions, it will `chown` the
  524. host path to the user and group required for the
  525. postgres container.
  526. schema:
  527. type: boolean
  528. default: false
  529. show_if: [["acl_enable", "=", false]]
  530. - variable: additional_storage
  531. label: Additional Storage
  532. schema:
  533. type: list
  534. default: []
  535. items:
  536. - variable: storageEntry
  537. label: Storage Entry
  538. schema:
  539. type: dict
  540. attrs:
  541. - variable: type
  542. label: Type
  543. description: |
  544. ixVolume: Is dataset created automatically by the system.</br>
  545. Host Path: Is a path that already exists on the system.</br>
  546. SMB Share: Is a SMB share that is mounted to as a volume.
  547. schema:
  548. type: string
  549. required: true
  550. default: "ix_volume"
  551. enum:
  552. - value: "host_path"
  553. description: Host Path (Path that already exists on the system)
  554. - value: "ix_volume"
  555. description: ixVolume (Dataset created automatically by the system)
  556. - value: "cifs"
  557. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  558. - variable: read_only
  559. label: Read Only
  560. description: Mount the volume as read only.
  561. schema:
  562. type: boolean
  563. default: false
  564. - variable: mount_path
  565. label: Mount Path
  566. description: The path inside the container to mount the storage.
  567. schema:
  568. type: path
  569. required: true
  570. - variable: host_path_config
  571. label: Host Path Configuration
  572. schema:
  573. type: dict
  574. show_if: [["type", "=", "host_path"]]
  575. attrs:
  576. - variable: acl_enable
  577. label: Enable ACL
  578. description: Enable ACL for the storage.
  579. schema:
  580. type: boolean
  581. default: false
  582. - variable: acl
  583. label: ACL Configuration
  584. schema:
  585. type: dict
  586. show_if: [["acl_enable", "=", true]]
  587. attrs: []
  588. $ref:
  589. - "normalize/acl"
  590. - variable: path
  591. label: Host Path
  592. description: The host path to use for storage.
  593. schema:
  594. type: hostpath
  595. show_if: [["acl_enable", "=", false]]
  596. required: true
  597. - variable: ix_volume_config
  598. label: ixVolume Configuration
  599. description: The configuration for the ixVolume dataset.
  600. schema:
  601. type: dict
  602. show_if: [["type", "=", "ix_volume"]]
  603. $ref:
  604. - "normalize/ix_volume"
  605. attrs:
  606. - variable: acl_enable
  607. label: Enable ACL
  608. description: Enable ACL for the storage.
  609. schema:
  610. type: boolean
  611. default: false
  612. - variable: dataset_name
  613. label: Dataset Name
  614. description: The name of the dataset to use for storage.
  615. schema:
  616. type: string
  617. required: true
  618. default: "storage_entry"
  619. - variable: acl_entries
  620. label: ACL Configuration
  621. schema:
  622. type: dict
  623. show_if: [["acl_enable", "=", true]]
  624. attrs: []
  625. $ref:
  626. - "normalize/acl"
  627. - variable: cifs_config
  628. label: SMB Configuration
  629. description: The configuration for the SMB dataset.
  630. schema:
  631. type: dict
  632. show_if: [["type", "=", "cifs"]]
  633. attrs:
  634. - variable: server
  635. label: Server
  636. description: The server to mount the SMB share.
  637. schema:
  638. type: string
  639. required: true
  640. - variable: path
  641. label: Path
  642. description: The path to mount the SMB share.
  643. schema:
  644. type: string
  645. required: true
  646. - variable: username
  647. label: Username
  648. description: The username to use for the SMB share.
  649. schema:
  650. type: string
  651. required: true
  652. - variable: password
  653. label: Password
  654. description: The password to use for the SMB share.
  655. schema:
  656. type: string
  657. required: true
  658. private: true
  659. - variable: domain
  660. label: Domain
  661. description: The domain to use for the SMB share.
  662. schema:
  663. type: string
  664. - variable: labels
  665. label: ""
  666. group: Labels Configuration
  667. schema:
  668. type: list
  669. default: []
  670. items:
  671. - variable: label
  672. label: Label
  673. schema:
  674. type: dict
  675. attrs:
  676. - variable: key
  677. label: Key
  678. schema:
  679. type: string
  680. required: true
  681. - variable: value
  682. label: Value
  683. schema:
  684. type: string
  685. required: true
  686. - variable: containers
  687. label: Containers
  688. description: Containers where the label should be applied
  689. schema:
  690. type: list
  691. items:
  692. - variable: container
  693. label: Container
  694. schema:
  695. type: string
  696. required: true
  697. enum:
  698. - value: home-assistant
  699. description: home-assistant
  700. - value: postgres
  701. description: postgres
  702. - variable: resources
  703. label: ""
  704. group: Resources Configuration
  705. schema:
  706. type: dict
  707. attrs:
  708. - variable: limits
  709. label: Limits
  710. schema:
  711. type: dict
  712. attrs:
  713. - variable: cpus
  714. label: CPUs
  715. description: CPUs limit for Home Assistant.
  716. schema:
  717. type: int
  718. default: 2
  719. required: true
  720. - variable: memory
  721. label: Memory (in MB)
  722. description: Memory limit for Home Assistant.
  723. schema:
  724. type: int
  725. default: 4096
  726. required: true