questions.yaml 18 KB

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