questions.yaml 25 KB

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