questions.yaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. groups:
  2. - name: Unifi Controller Configuration
  3. description: Configure Unifi Controller
  4. - name: Network Configuration
  5. description: Configure Network for Unifi Controller
  6. - name: Storage Configuration
  7. description: Configure Storage for Unifi Controller
  8. - name: Labels Configuration
  9. description: Configure Labels for Unifi Controller
  10. - name: Resources Configuration
  11. description: Configure Resources for Unifi Controller
  12. questions:
  13. - variable: TZ
  14. group: Unifi Controller Configuration
  15. label: Timezone
  16. schema:
  17. type: string
  18. default: Etc/UTC
  19. required: true
  20. $ref:
  21. - definitions/timezone
  22. - variable: unifi
  23. label: ""
  24. group: Unifi Controller Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additional_envs
  29. label: Additional Environment Variables
  30. schema:
  31. type: list
  32. default: []
  33. items:
  34. - variable: env
  35. label: Environment Variable
  36. schema:
  37. type: dict
  38. attrs:
  39. - variable: name
  40. label: Name
  41. schema:
  42. type: string
  43. required: true
  44. - variable: value
  45. label: Value
  46. schema:
  47. type: string
  48. - variable: network
  49. label: ""
  50. group: Network Configuration
  51. schema:
  52. type: dict
  53. attrs:
  54. - variable: web_https_port
  55. label: WebUI / API Port
  56. description: The port for Unifi Controller WebUI / API
  57. schema:
  58. type: dict
  59. attrs:
  60. - variable: bind_mode
  61. label: Port Bind Mode
  62. description: |
  63. The port bind mode.</br>
  64. - Publish: The port will be published on the host for external access.</br>
  65. - Expose: The port will be exposed for inter-container communication.</br>
  66. - None: The port will not be exposed or published.</br>
  67. Note: If the Dockerfile defines an EXPOSE directive,
  68. the port will still be exposed for inter-container communication regardless of this setting.
  69. schema:
  70. type: string
  71. default: "published"
  72. enum:
  73. - value: "published"
  74. description: Publish port on the host for external access
  75. - value: "exposed"
  76. description: Expose port for inter-container communication
  77. - value: ""
  78. description: None
  79. - variable: port_number
  80. label: Port Number
  81. schema:
  82. type: int
  83. default: 30072
  84. min: 1
  85. max: 65535
  86. required: true
  87. - variable: host_ips
  88. label: Host IPs
  89. description: IPs on the host to bind this port
  90. schema:
  91. type: list
  92. show_if: [["bind_mode", "=", "published"]]
  93. default: []
  94. items:
  95. - variable: host_ip
  96. label: Host IP
  97. schema:
  98. type: string
  99. required: true
  100. $ref:
  101. - definitions/node_bind_ip
  102. - variable: web_http_port
  103. label: UAP/USW/USG to Inform Controller Port
  104. description: The HTTP port for Unifi Controller WebUI
  105. schema:
  106. type: dict
  107. attrs:
  108. - variable: bind_mode
  109. label: Port Bind Mode
  110. description: |
  111. The port bind mode.</br>
  112. - Publish: The port will be published on the host for external access.</br>
  113. - Expose: The port will be exposed for inter-container communication.</br>
  114. - None: The port will not be exposed or published.</br>
  115. Note: If the Dockerfile defines an EXPOSE directive,
  116. the port will still be exposed for inter-container communication regardless of this setting.
  117. schema:
  118. type: string
  119. default: "published"
  120. enum:
  121. - value: "published"
  122. description: Publish port on the host for external access
  123. - value: "exposed"
  124. description: Expose port for inter-container communication
  125. - value: ""
  126. description: None
  127. - variable: port_number
  128. label: Port Number
  129. schema:
  130. type: int
  131. default: 30073
  132. min: 1
  133. max: 65535
  134. required: true
  135. - variable: host_ips
  136. label: Host IPs
  137. description: IPs on the host to bind this port
  138. schema:
  139. type: list
  140. show_if: [["bind_mode", "=", "published"]]
  141. default: []
  142. items:
  143. - variable: host_ip
  144. label: Host IP
  145. schema:
  146. type: string
  147. required: true
  148. $ref:
  149. - definitions/node_bind_ip
  150. - variable: portal_https_port
  151. label: Portal HTTPS Port
  152. description: The HTTPS port for Unifi Controller Portal
  153. schema:
  154. type: dict
  155. attrs:
  156. - variable: bind_mode
  157. label: Port Bind Mode
  158. description: |
  159. The port bind mode.</br>
  160. - Publish: The port will be published on the host for external access.</br>
  161. - Expose: The port will be exposed for inter-container communication.</br>
  162. - None: The port will not be exposed or published.</br>
  163. Note: If the Dockerfile defines an EXPOSE directive,
  164. the port will still be exposed for inter-container communication regardless of this setting.
  165. schema:
  166. type: string
  167. default: "published"
  168. enum:
  169. - value: "published"
  170. description: Publish port on the host for external access
  171. - value: "exposed"
  172. description: Expose port for inter-container communication
  173. - value: ""
  174. description: None
  175. - variable: port_number
  176. label: Port Number
  177. schema:
  178. type: int
  179. default: 30074
  180. min: 1
  181. max: 65535
  182. required: true
  183. - variable: host_ips
  184. label: Host IPs
  185. description: IPs on the host to bind this port
  186. schema:
  187. type: list
  188. show_if: [["bind_mode", "=", "published"]]
  189. default: []
  190. items:
  191. - variable: host_ip
  192. label: Host IP
  193. schema:
  194. type: string
  195. required: true
  196. $ref:
  197. - definitions/node_bind_ip
  198. - variable: portal_http_port
  199. label: Portal HTTP Port
  200. description: The HTTP port for Unifi Controller Portal
  201. schema:
  202. type: dict
  203. attrs:
  204. - variable: bind_mode
  205. label: Port Bind Mode
  206. description: |
  207. The port bind mode.</br>
  208. - Publish: The port will be published on the host for external access.</br>
  209. - Expose: The port will be exposed for inter-container communication.</br>
  210. - None: The port will not be exposed or published.</br>
  211. Note: If the Dockerfile defines an EXPOSE directive,
  212. the port will still be exposed for inter-container communication regardless of this setting.
  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. - value: ""
  222. description: None
  223. - variable: port_number
  224. label: Port Number
  225. schema:
  226. type: int
  227. default: 30075
  228. min: 1
  229. max: 65535
  230. required: true
  231. - variable: host_ips
  232. label: Host IPs
  233. description: IPs on the host to bind this port
  234. schema:
  235. type: list
  236. show_if: [["bind_mode", "=", "published"]]
  237. default: []
  238. items:
  239. - variable: host_ip
  240. label: Host IP
  241. schema:
  242. type: string
  243. required: true
  244. $ref:
  245. - definitions/node_bind_ip
  246. - variable: throughput_port
  247. label: Throughput Measurements Port
  248. description: The port for Unifi Controller Throughput Measurements
  249. schema:
  250. type: dict
  251. attrs:
  252. - variable: bind_mode
  253. label: Port Bind Mode
  254. description: |
  255. The port bind mode.</br>
  256. - Publish: The port will be published on the host for external access.</br>
  257. - Expose: The port will be exposed for inter-container communication.</br>
  258. - None: The port will not be exposed or published.</br>
  259. Note: If the Dockerfile defines an EXPOSE directive,
  260. the port will still be exposed for inter-container communication regardless of this setting.
  261. schema:
  262. type: string
  263. default: ""
  264. enum:
  265. - value: "published"
  266. description: Publish port on the host for external access
  267. - value: "exposed"
  268. description: Expose port for inter-container communication
  269. - value: ""
  270. description: None
  271. - variable: port_number
  272. label: Port Number
  273. schema:
  274. type: int
  275. default: 30023
  276. min: 1
  277. max: 65535
  278. required: true
  279. - variable: host_ips
  280. label: Host IPs
  281. description: IPs on the host to bind this port
  282. schema:
  283. type: list
  284. show_if: [["bind_mode", "=", "published"]]
  285. default: []
  286. items:
  287. - variable: host_ip
  288. label: Host IP
  289. schema:
  290. type: string
  291. required: true
  292. $ref:
  293. - definitions/node_bind_ip
  294. - variable: discovery_port
  295. label: Discovery Port
  296. description: The port for Unifi Controller Discovery
  297. schema:
  298. type: dict
  299. show_if: [["host_network", "=", false]]
  300. attrs:
  301. - variable: bind_mode
  302. label: Port Bind Mode
  303. description: |
  304. The port bind mode.</br>
  305. - Publish: The port will be published on the host for external access.</br>
  306. - Expose: The port will be exposed for inter-container communication.</br>
  307. - None: The port will not be exposed or published.</br>
  308. Note: If the Dockerfile defines an EXPOSE directive,
  309. the port will still be exposed for inter-container communication regardless of this setting.
  310. schema:
  311. type: string
  312. default: ""
  313. enum:
  314. - value: "published"
  315. description: Publish port on the host for external access
  316. - value: "exposed"
  317. description: Expose port for inter-container communication
  318. - value: ""
  319. description: None
  320. - variable: port_number
  321. label: Port Number
  322. schema:
  323. type: int
  324. default: 10001
  325. show_if: [["bind_mode", "=", "published"]]
  326. min: 1
  327. max: 65535
  328. required: true
  329. - variable: host_ips
  330. label: Host IPs
  331. description: IPs on the host to bind this port
  332. schema:
  333. type: list
  334. show_if: [["bind_mode", "=", "published"]]
  335. default: []
  336. items:
  337. - variable: host_ip
  338. label: Host IP
  339. schema:
  340. type: string
  341. required: true
  342. $ref:
  343. - definitions/node_bind_ip
  344. - variable: certificate_id
  345. label: Certificate ID
  346. description: The ID of the certificate to use for Unifi Controller
  347. schema:
  348. type: int
  349. "null": true
  350. $ref:
  351. - "definitions/certificate"
  352. - variable: host_network
  353. label: Host Network
  354. description: |
  355. Bind to the host network. It's recommended to keep this disabled.
  356. schema:
  357. type: boolean
  358. default: false
  359. - variable: storage
  360. label: ""
  361. group: Storage Configuration
  362. schema:
  363. type: dict
  364. attrs:
  365. - variable: data
  366. label: Unifi Controller Data Storage
  367. description: The path to store Unifi Controller Data.
  368. schema:
  369. type: dict
  370. attrs:
  371. - variable: type
  372. label: Type
  373. description: |
  374. ixVolume: Is dataset created automatically by the system.</br>
  375. Host Path: Is a path that already exists on the system.
  376. schema:
  377. type: string
  378. required: true
  379. default: "ix_volume"
  380. enum:
  381. - value: "host_path"
  382. description: Host Path (Path that already exists on the system)
  383. - value: "ix_volume"
  384. description: ixVolume (Dataset created automatically by the system)
  385. - variable: ix_volume_config
  386. label: ixVolume Configuration
  387. description: The configuration for the ixVolume dataset.
  388. schema:
  389. type: dict
  390. show_if: [["type", "=", "ix_volume"]]
  391. $ref:
  392. - "normalize/ix_volume"
  393. attrs:
  394. - variable: acl_enable
  395. label: Enable ACL
  396. description: Enable ACL for the storage.
  397. schema:
  398. type: boolean
  399. default: false
  400. - variable: dataset_name
  401. label: Dataset Name
  402. description: The name of the dataset to use for storage.
  403. schema:
  404. type: string
  405. required: true
  406. hidden: true
  407. default: "data"
  408. - variable: acl_entries
  409. label: ACL Configuration
  410. schema:
  411. type: dict
  412. show_if: [["acl_enable", "=", true]]
  413. attrs: []
  414. - variable: host_path_config
  415. label: Host Path Configuration
  416. schema:
  417. type: dict
  418. show_if: [["type", "=", "host_path"]]
  419. attrs:
  420. - variable: acl_enable
  421. label: Enable ACL
  422. description: Enable ACL for the storage.
  423. schema:
  424. type: boolean
  425. default: false
  426. - variable: acl
  427. label: ACL Configuration
  428. schema:
  429. type: dict
  430. show_if: [["acl_enable", "=", true]]
  431. attrs: []
  432. $ref:
  433. - "normalize/acl"
  434. - variable: path
  435. label: Host Path
  436. description: The host path to use for storage.
  437. schema:
  438. type: hostpath
  439. show_if: [["acl_enable", "=", false]]
  440. required: true
  441. - variable: additional_storage
  442. label: Additional Storage
  443. schema:
  444. type: list
  445. default: []
  446. items:
  447. - variable: storageEntry
  448. label: Storage Entry
  449. schema:
  450. type: dict
  451. attrs:
  452. - variable: type
  453. label: Type
  454. description: |
  455. ixVolume: Is dataset created automatically by the system.</br>
  456. Host Path: Is a path that already exists on the system.</br>
  457. SMB Share: Is a SMB share that is mounted to as a volume.
  458. schema:
  459. type: string
  460. required: true
  461. default: "ix_volume"
  462. enum:
  463. - value: "host_path"
  464. description: Host Path (Path that already exists on the system)
  465. - value: "ix_volume"
  466. description: ixVolume (Dataset created automatically by the system)
  467. - value: "cifs"
  468. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  469. - variable: read_only
  470. label: Read Only
  471. description: Mount the volume as read only.
  472. schema:
  473. type: boolean
  474. default: false
  475. - variable: mount_path
  476. label: Mount Path
  477. description: The path inside the container to mount the storage.
  478. schema:
  479. type: path
  480. required: true
  481. - variable: host_path_config
  482. label: Host Path Configuration
  483. schema:
  484. type: dict
  485. show_if: [["type", "=", "host_path"]]
  486. attrs:
  487. - variable: acl_enable
  488. label: Enable ACL
  489. description: Enable ACL for the storage.
  490. schema:
  491. type: boolean
  492. default: false
  493. - variable: acl
  494. label: ACL Configuration
  495. schema:
  496. type: dict
  497. show_if: [["acl_enable", "=", true]]
  498. attrs: []
  499. $ref:
  500. - "normalize/acl"
  501. - variable: path
  502. label: Host Path
  503. description: The host path to use for storage.
  504. schema:
  505. type: hostpath
  506. show_if: [["acl_enable", "=", false]]
  507. required: true
  508. - variable: ix_volume_config
  509. label: ixVolume Configuration
  510. description: The configuration for the ixVolume dataset.
  511. schema:
  512. type: dict
  513. show_if: [["type", "=", "ix_volume"]]
  514. $ref:
  515. - "normalize/ix_volume"
  516. attrs:
  517. - variable: acl_enable
  518. label: Enable ACL
  519. description: Enable ACL for the storage.
  520. schema:
  521. type: boolean
  522. default: false
  523. - variable: dataset_name
  524. label: Dataset Name
  525. description: The name of the dataset to use for storage.
  526. schema:
  527. type: string
  528. required: true
  529. default: "storage_entry"
  530. - variable: acl_entries
  531. label: ACL Configuration
  532. schema:
  533. type: dict
  534. show_if: [["acl_enable", "=", true]]
  535. attrs: []
  536. $ref:
  537. - "normalize/acl"
  538. - variable: cifs_config
  539. label: SMB Configuration
  540. description: The configuration for the SMB dataset.
  541. schema:
  542. type: dict
  543. show_if: [["type", "=", "cifs"]]
  544. attrs:
  545. - variable: server
  546. label: Server
  547. description: The server to mount the SMB share.
  548. schema:
  549. type: string
  550. required: true
  551. - variable: path
  552. label: Path
  553. description: The path to mount the SMB share.
  554. schema:
  555. type: string
  556. required: true
  557. - variable: username
  558. label: Username
  559. description: The username to use for the SMB share.
  560. schema:
  561. type: string
  562. required: true
  563. - variable: password
  564. label: Password
  565. description: The password to use for the SMB share.
  566. schema:
  567. type: string
  568. required: true
  569. private: true
  570. - variable: domain
  571. label: Domain
  572. description: The domain to use for the SMB share.
  573. schema:
  574. type: string
  575. - variable: labels
  576. label: ""
  577. group: Labels Configuration
  578. schema:
  579. type: list
  580. default: []
  581. items:
  582. - variable: label
  583. label: Label
  584. schema:
  585. type: dict
  586. attrs:
  587. - variable: key
  588. label: Key
  589. schema:
  590. type: string
  591. required: true
  592. - variable: value
  593. label: Value
  594. schema:
  595. type: string
  596. required: true
  597. - variable: containers
  598. label: Containers
  599. description: Containers where the label should be applied
  600. schema:
  601. type: list
  602. items:
  603. - variable: container
  604. label: Container
  605. schema:
  606. type: string
  607. required: true
  608. enum:
  609. - value: unifi
  610. description: unifi
  611. - variable: resources
  612. label: ""
  613. group: Resources Configuration
  614. schema:
  615. type: dict
  616. attrs:
  617. - variable: limits
  618. label: Limits
  619. schema:
  620. type: dict
  621. attrs:
  622. - variable: cpus
  623. label: CPUs
  624. description: CPUs limit for Unifi Controller.
  625. schema:
  626. type: int
  627. default: 2
  628. required: true
  629. - variable: memory
  630. label: Memory (in MB)
  631. description: Memory limit for Unifi Controller.
  632. schema:
  633. type: int
  634. default: 4096
  635. required: true