questions.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. groups:
  2. - name: ESPHome Configuration
  3. description: Configure ESPHome
  4. - name: User and Group Configuration
  5. description: Configure User and Group for ESPHome
  6. - name: Network Configuration
  7. description: Configure Network for ESPHome
  8. - name: Storage Configuration
  9. description: Configure Storage for ESPHome
  10. - name: Labels Configuration
  11. description: Configure Labels for ESPHome
  12. - name: Resources Configuration
  13. description: Configure Resources for ESPHome
  14. questions:
  15. - variable: TZ
  16. group: ESPHome Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: esphome
  25. label: ""
  26. group: ESPHome Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: devices
  31. label: Devices
  32. description: |
  33. Devices to use for ESPHome.
  34. Eg: Host Device: /dev/ttyUSB0, Container Device: /dev/ttyACM0
  35. schema:
  36. type: list
  37. default: []
  38. items:
  39. - variable: device
  40. label: Device
  41. schema:
  42. type: dict
  43. attrs:
  44. - variable: host_device
  45. label: Host Device
  46. schema:
  47. type: string
  48. required: true
  49. - variable: container_device
  50. label: Container Device
  51. schema:
  52. type: string
  53. required: true
  54. - variable: additional_envs
  55. label: Additional Environment Variables
  56. schema:
  57. type: list
  58. default: []
  59. items:
  60. - variable: env
  61. label: Environment Variable
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: name
  66. label: Name
  67. schema:
  68. type: string
  69. required: true
  70. - variable: value
  71. label: Value
  72. schema:
  73. type: string
  74. - variable: run_as
  75. label: ""
  76. group: User and Group Configuration
  77. schema:
  78. type: dict
  79. attrs:
  80. - variable: user
  81. label: User ID
  82. description: The user id that ESPHome files will be owned by.
  83. schema:
  84. type: int
  85. min: 568
  86. default: 568
  87. required: true
  88. - variable: group
  89. label: Group ID
  90. description: The group id that ESPHome files will be owned by.
  91. schema:
  92. type: int
  93. min: 568
  94. default: 568
  95. required: true
  96. - variable: network
  97. label: ""
  98. group: Network Configuration
  99. schema:
  100. type: dict
  101. attrs:
  102. - variable: web_port
  103. label: WebUI Port
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: bind_mode
  108. label: Port Bind Mode
  109. description: |
  110. The port bind mode.</br>
  111. - Publish: The port will be published on the host for external access.</br>
  112. - Expose: The port will be exposed for inter-container communication.</br>
  113. - None: The port will not be exposed or published.</br>
  114. Note: If the Dockerfile defines an EXPOSE directive,
  115. the port will still be exposed for inter-container communication regardless of this setting.
  116. schema:
  117. type: string
  118. default: "published"
  119. enum:
  120. - value: "published"
  121. description: Publish port on the host for external access
  122. - value: "exposed"
  123. description: Expose port for inter-container communication
  124. - value: ""
  125. description: None
  126. - variable: port_number
  127. label: Port Number
  128. schema:
  129. type: int
  130. default: 36052
  131. min: 1
  132. max: 65535
  133. required: true
  134. - variable: host_ips
  135. label: Host IPs
  136. description: IPs on the host to bind this port
  137. schema:
  138. type: list
  139. show_if: [["bind_mode", "=", "published"]]
  140. default: []
  141. items:
  142. - variable: host_ip
  143. label: Host IP
  144. schema:
  145. type: string
  146. required: true
  147. $ref:
  148. - definitions/node_bind_ip
  149. - variable: additional_ports
  150. label: Additional Ports
  151. schema:
  152. type: list
  153. show_if: [["host_network", "=", false]]
  154. items:
  155. - variable: port
  156. label: Port
  157. schema:
  158. type: dict
  159. attrs:
  160. - variable: bind_mode
  161. label: Port Bind Mode
  162. description: |
  163. The port bind mode.</br>
  164. - Publish: The port will be published on the host for external access.</br>
  165. - Expose: The port will be exposed for inter-container communication.</br>
  166. schema:
  167. type: string
  168. default: "published"
  169. enum:
  170. - value: "published"
  171. description: Publish port on the host for external access
  172. - value: "exposed"
  173. description: Expose port for inter-container communication
  174. - variable: port_number
  175. label: Port Number
  176. schema:
  177. type: int
  178. min: 1
  179. max: 65535
  180. required: true
  181. - variable: container_port
  182. label: Container Port
  183. schema:
  184. type: int
  185. min: 1
  186. max: 65535
  187. required: true
  188. - variable: protocol
  189. label: Protocol
  190. schema:
  191. type: string
  192. required: true
  193. default: "tcp"
  194. enum:
  195. - value: "tcp"
  196. description: TCP
  197. - value: "udp"
  198. description: UDP
  199. - variable: host_ips
  200. label: Host IPs
  201. description: IPs on the host to bind this port
  202. schema:
  203. type: list
  204. show_if: [["bind_mode", "=", "published"]]
  205. default: []
  206. items:
  207. - variable: host_ip
  208. label: Host IP
  209. schema:
  210. type: string
  211. required: true
  212. $ref:
  213. - definitions/node_bind_ip
  214. - variable: host_network
  215. label: Host Network
  216. description: |
  217. Bind to the host network. It's recommended to keep this disabled.
  218. schema:
  219. type: boolean
  220. default: false
  221. - variable: storage
  222. label: ""
  223. group: Storage Configuration
  224. schema:
  225. type: dict
  226. attrs:
  227. - variable: config
  228. label: ESPHome Config Storage
  229. description: The path to store ESPHome Config.
  230. schema:
  231. type: dict
  232. attrs:
  233. - variable: type
  234. label: Type
  235. description: |
  236. ixVolume: Is dataset created automatically by the system.</br>
  237. Host Path: Is a path that already exists on the system.
  238. schema:
  239. type: string
  240. required: true
  241. default: "ix_volume"
  242. enum:
  243. - value: "host_path"
  244. description: Host Path (Path that already exists on the system)
  245. - value: "ix_volume"
  246. description: ixVolume (Dataset created automatically by the system)
  247. - variable: ix_volume_config
  248. label: ixVolume Configuration
  249. description: The configuration for the ixVolume dataset.
  250. schema:
  251. type: dict
  252. show_if: [["type", "=", "ix_volume"]]
  253. $ref:
  254. - "normalize/ix_volume"
  255. attrs:
  256. - variable: acl_enable
  257. label: Enable ACL
  258. description: Enable ACL for the storage.
  259. schema:
  260. type: boolean
  261. default: false
  262. - variable: dataset_name
  263. label: Dataset Name
  264. description: The name of the dataset to use for storage.
  265. schema:
  266. type: string
  267. required: true
  268. hidden: true
  269. default: "config"
  270. - variable: acl_entries
  271. label: ACL Configuration
  272. schema:
  273. type: dict
  274. show_if: [["acl_enable", "=", true]]
  275. attrs: []
  276. - variable: host_path_config
  277. label: Host Path Configuration
  278. schema:
  279. type: dict
  280. show_if: [["type", "=", "host_path"]]
  281. attrs:
  282. - variable: acl_enable
  283. label: Enable ACL
  284. description: Enable ACL for the storage.
  285. schema:
  286. type: boolean
  287. default: false
  288. - variable: acl
  289. label: ACL Configuration
  290. schema:
  291. type: dict
  292. show_if: [["acl_enable", "=", true]]
  293. attrs: []
  294. $ref:
  295. - "normalize/acl"
  296. - variable: path
  297. label: Host Path
  298. description: The host path to use for storage.
  299. schema:
  300. type: hostpath
  301. show_if: [["acl_enable", "=", false]]
  302. required: true
  303. - variable: additional_storage
  304. label: Additional Storage
  305. schema:
  306. type: list
  307. default: []
  308. items:
  309. - variable: storageEntry
  310. label: Storage Entry
  311. schema:
  312. type: dict
  313. attrs:
  314. - variable: type
  315. label: Type
  316. description: |
  317. ixVolume: Is dataset created automatically by the system.</br>
  318. Host Path: Is a path that already exists on the system.</br>
  319. SMB Share: Is a SMB share that is mounted to as a volume.
  320. schema:
  321. type: string
  322. required: true
  323. default: "ix_volume"
  324. enum:
  325. - value: "host_path"
  326. description: Host Path (Path that already exists on the system)
  327. - value: "ix_volume"
  328. description: ixVolume (Dataset created automatically by the system)
  329. - value: "cifs"
  330. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  331. - variable: read_only
  332. label: Read Only
  333. description: Mount the volume as read only.
  334. schema:
  335. type: boolean
  336. default: false
  337. - variable: mount_path
  338. label: Mount Path
  339. description: The path inside the container to mount the storage.
  340. schema:
  341. type: path
  342. required: true
  343. - variable: host_path_config
  344. label: Host Path Configuration
  345. schema:
  346. type: dict
  347. show_if: [["type", "=", "host_path"]]
  348. attrs:
  349. - variable: acl_enable
  350. label: Enable ACL
  351. description: Enable ACL for the storage.
  352. schema:
  353. type: boolean
  354. default: false
  355. - variable: acl
  356. label: ACL Configuration
  357. schema:
  358. type: dict
  359. show_if: [["acl_enable", "=", true]]
  360. attrs: []
  361. $ref:
  362. - "normalize/acl"
  363. - variable: path
  364. label: Host Path
  365. description: The host path to use for storage.
  366. schema:
  367. type: hostpath
  368. show_if: [["acl_enable", "=", false]]
  369. required: true
  370. - variable: ix_volume_config
  371. label: ixVolume Configuration
  372. description: The configuration for the ixVolume dataset.
  373. schema:
  374. type: dict
  375. show_if: [["type", "=", "ix_volume"]]
  376. $ref:
  377. - "normalize/ix_volume"
  378. attrs:
  379. - variable: acl_enable
  380. label: Enable ACL
  381. description: Enable ACL for the storage.
  382. schema:
  383. type: boolean
  384. default: false
  385. - variable: dataset_name
  386. label: Dataset Name
  387. description: The name of the dataset to use for storage.
  388. schema:
  389. type: string
  390. required: true
  391. default: "storage_entry"
  392. - variable: acl_entries
  393. label: ACL Configuration
  394. schema:
  395. type: dict
  396. show_if: [["acl_enable", "=", true]]
  397. attrs: []
  398. $ref:
  399. - "normalize/acl"
  400. - variable: cifs_config
  401. label: SMB Configuration
  402. description: The configuration for the SMB dataset.
  403. schema:
  404. type: dict
  405. show_if: [["type", "=", "cifs"]]
  406. attrs:
  407. - variable: server
  408. label: Server
  409. description: The server to mount the SMB share.
  410. schema:
  411. type: string
  412. required: true
  413. - variable: path
  414. label: Path
  415. description: The path to mount the SMB share.
  416. schema:
  417. type: string
  418. required: true
  419. - variable: username
  420. label: Username
  421. description: The username to use for the SMB share.
  422. schema:
  423. type: string
  424. required: true
  425. - variable: password
  426. label: Password
  427. description: The password to use for the SMB share.
  428. schema:
  429. type: string
  430. required: true
  431. private: true
  432. - variable: domain
  433. label: Domain
  434. description: The domain to use for the SMB share.
  435. schema:
  436. type: string
  437. - variable: labels
  438. label: ""
  439. group: Labels Configuration
  440. schema:
  441. type: list
  442. default: []
  443. items:
  444. - variable: label
  445. label: Label
  446. schema:
  447. type: dict
  448. attrs:
  449. - variable: key
  450. label: Key
  451. schema:
  452. type: string
  453. required: true
  454. - variable: value
  455. label: Value
  456. schema:
  457. type: string
  458. required: true
  459. - variable: containers
  460. label: Containers
  461. description: Containers where the label should be applied
  462. schema:
  463. type: list
  464. items:
  465. - variable: container
  466. label: Container
  467. schema:
  468. type: string
  469. required: true
  470. enum:
  471. - value: esphome
  472. description: esphome
  473. - variable: resources
  474. label: ""
  475. group: Resources Configuration
  476. schema:
  477. type: dict
  478. attrs:
  479. - variable: limits
  480. label: Limits
  481. schema:
  482. type: dict
  483. attrs:
  484. - variable: cpus
  485. label: CPUs
  486. description: CPUs limit for ESPHome.
  487. schema:
  488. type: int
  489. default: 2
  490. required: true
  491. - variable: memory
  492. label: Memory (in MB)
  493. description: Memory limit for ESPHome.
  494. schema:
  495. type: int
  496. default: 4096
  497. required: true