questions.yaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. groups:
  2. - name: LazyLibrarian Configuration
  3. description: Configure LazyLibrarian
  4. - name: User and Group Configuration
  5. description: Configure User and Group for LazyLibrarian
  6. - name: Network Configuration
  7. description: Configure Network for LazyLibrarian
  8. - name: Storage Configuration
  9. description: Configure Storage for LazyLibrarian
  10. - name: Labels Configuration
  11. description: Configure Labels for LazyLibrarian
  12. - name: Resources Configuration
  13. description: Configure Resources for LazyLibrarian
  14. questions:
  15. - variable: TZ
  16. group: LazyLibrarian Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: lazylibrarian
  25. label: ""
  26. group: LazyLibrarian 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 LazyLibrarian 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 LazyLibrarian 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. show_if: [["host_network", "=", false]]
  83. attrs:
  84. - variable: bind_mode
  85. label: Port Bind Mode
  86. description: |
  87. The port bind mode.</br>
  88. - Publish: The port will be published on the host for external access.</br>
  89. - Expose: The port will be exposed for inter-container communication.</br>
  90. - None: The port will not be exposed or published.</br>
  91. Note: If the Dockerfile defines an EXPOSE directive,
  92. the port will still be exposed for inter-container communication regardless of this setting.
  93. schema:
  94. type: string
  95. default: "published"
  96. enum:
  97. - value: "published"
  98. description: Publish port on the host for external access
  99. - value: "exposed"
  100. description: Expose port for inter-container communication
  101. - value: ""
  102. description: None
  103. - variable: port_number
  104. label: Port Number
  105. schema:
  106. type: int
  107. show_if: [["bind_mode", "=", "published"]]
  108. default: 31089
  109. min: 1
  110. max: 65535
  111. required: true
  112. - variable: host_ips
  113. label: Host IPs
  114. description: IPs on the host to bind this port
  115. schema:
  116. type: list
  117. show_if: [["bind_mode", "=", "published"]]
  118. default: []
  119. items:
  120. - variable: host_ip
  121. label: Host IP
  122. schema:
  123. type: string
  124. required: true
  125. $ref:
  126. - definitions/node_bind_ip
  127. - variable: host_network
  128. label: Host Network
  129. description: |
  130. Bind to the host network. It's recommended to keep this disabled.
  131. schema:
  132. type: boolean
  133. default: false
  134. - variable: storage
  135. label: ""
  136. group: Storage Configuration
  137. schema:
  138. type: dict
  139. attrs:
  140. - variable: config
  141. label: LazyLibrarian Config Storage
  142. description: The path to store LazyLibrarian Config.
  143. schema:
  144. type: dict
  145. attrs:
  146. - variable: type
  147. label: Type
  148. description: |
  149. ixVolume: Is dataset created automatically by the system.</br>
  150. Host Path: Is a path that already exists on the system.
  151. schema:
  152. type: string
  153. required: true
  154. default: "ix_volume"
  155. enum:
  156. - value: "host_path"
  157. description: Host Path (Path that already exists on the system)
  158. - value: "ix_volume"
  159. description: ixVolume (Dataset created automatically by the system)
  160. - variable: ix_volume_config
  161. label: ixVolume Configuration
  162. description: The configuration for the ixVolume dataset.
  163. schema:
  164. type: dict
  165. show_if: [["type", "=", "ix_volume"]]
  166. $ref:
  167. - "normalize/ix_volume"
  168. attrs:
  169. - variable: acl_enable
  170. label: Enable ACL
  171. description: Enable ACL for the storage.
  172. schema:
  173. type: boolean
  174. default: false
  175. - variable: dataset_name
  176. label: Dataset Name
  177. description: The name of the dataset to use for storage.
  178. schema:
  179. type: string
  180. required: true
  181. hidden: true
  182. default: "config"
  183. - variable: acl_entries
  184. label: ACL Configuration
  185. schema:
  186. type: dict
  187. show_if: [["acl_enable", "=", true]]
  188. attrs: []
  189. - variable: host_path_config
  190. label: Host Path Configuration
  191. schema:
  192. type: dict
  193. show_if: [["type", "=", "host_path"]]
  194. attrs:
  195. - variable: acl_enable
  196. label: Enable ACL
  197. description: Enable ACL for the storage.
  198. schema:
  199. type: boolean
  200. default: false
  201. - variable: acl
  202. label: ACL Configuration
  203. schema:
  204. type: dict
  205. show_if: [["acl_enable", "=", true]]
  206. attrs: []
  207. $ref:
  208. - "normalize/acl"
  209. - variable: path
  210. label: Host Path
  211. description: The host path to use for storage.
  212. schema:
  213. type: hostpath
  214. show_if: [["acl_enable", "=", false]]
  215. required: true
  216. - variable: downloads
  217. label: LazyLibrarian Downloads Storage
  218. description: The path to store LazyLibrarian Downloads.
  219. schema:
  220. type: dict
  221. attrs:
  222. - variable: type
  223. label: Type
  224. description: |
  225. ixVolume: Is dataset created automatically by the system.</br>
  226. Host Path: Is a path that already exists on the system.
  227. schema:
  228. type: string
  229. required: true
  230. default: "ix_volume"
  231. enum:
  232. - value: "host_path"
  233. description: Host Path (Path that already exists on the system)
  234. - value: "ix_volume"
  235. description: ixVolume (Dataset created automatically by the system)
  236. - variable: ix_volume_config
  237. label: ixVolume Configuration
  238. description: The configuration for the ixVolume dataset.
  239. schema:
  240. type: dict
  241. show_if: [["type", "=", "ix_volume"]]
  242. $ref:
  243. - "normalize/ix_volume"
  244. attrs:
  245. - variable: acl_enable
  246. label: Enable ACL
  247. description: Enable ACL for the storage.
  248. schema:
  249. type: boolean
  250. default: false
  251. - variable: dataset_name
  252. label: Dataset Name
  253. description: The name of the dataset to use for storage.
  254. schema:
  255. type: string
  256. required: true
  257. hidden: true
  258. default: "downloads"
  259. - variable: acl_entries
  260. label: ACL Configuration
  261. schema:
  262. type: dict
  263. show_if: [["acl_enable", "=", true]]
  264. attrs: []
  265. - variable: host_path_config
  266. label: Host Path Configuration
  267. schema:
  268. type: dict
  269. show_if: [["type", "=", "host_path"]]
  270. attrs:
  271. - variable: acl_enable
  272. label: Enable ACL
  273. description: Enable ACL for the storage.
  274. schema:
  275. type: boolean
  276. default: false
  277. - variable: acl
  278. label: ACL Configuration
  279. schema:
  280. type: dict
  281. show_if: [["acl_enable", "=", true]]
  282. attrs: []
  283. $ref:
  284. - "normalize/acl"
  285. - variable: path
  286. label: Host Path
  287. description: The host path to use for storage.
  288. schema:
  289. type: hostpath
  290. show_if: [["acl_enable", "=", false]]
  291. required: true
  292. - variable: books
  293. label: LazyLibrarian Books Storage
  294. description: The path to store LazyLibrarian Books.
  295. schema:
  296. type: dict
  297. attrs:
  298. - variable: type
  299. label: Type
  300. description: |
  301. ixVolume: Is dataset created automatically by the system.</br>
  302. Host Path: Is a path that already exists on the system.
  303. schema:
  304. type: string
  305. required: true
  306. default: "ix_volume"
  307. enum:
  308. - value: "host_path"
  309. description: Host Path (Path that already exists on the system)
  310. - value: "ix_volume"
  311. description: ixVolume (Dataset created automatically by the system)
  312. - variable: ix_volume_config
  313. label: ixVolume Configuration
  314. description: The configuration for the ixVolume dataset.
  315. schema:
  316. type: dict
  317. show_if: [["type", "=", "ix_volume"]]
  318. $ref:
  319. - "normalize/ix_volume"
  320. attrs:
  321. - variable: acl_enable
  322. label: Enable ACL
  323. description: Enable ACL for the storage.
  324. schema:
  325. type: boolean
  326. default: false
  327. - variable: dataset_name
  328. label: Dataset Name
  329. description: The name of the dataset to use for storage.
  330. schema:
  331. type: string
  332. required: true
  333. hidden: true
  334. default: "books"
  335. - variable: acl_entries
  336. label: ACL Configuration
  337. schema:
  338. type: dict
  339. show_if: [["acl_enable", "=", true]]
  340. attrs: []
  341. - variable: host_path_config
  342. label: Host Path Configuration
  343. schema:
  344. type: dict
  345. show_if: [["type", "=", "host_path"]]
  346. attrs:
  347. - variable: acl_enable
  348. label: Enable ACL
  349. description: Enable ACL for the storage.
  350. schema:
  351. type: boolean
  352. default: false
  353. - variable: acl
  354. label: ACL Configuration
  355. schema:
  356. type: dict
  357. show_if: [["acl_enable", "=", true]]
  358. attrs: []
  359. $ref:
  360. - "normalize/acl"
  361. - variable: path
  362. label: Host Path
  363. description: The host path to use for storage.
  364. schema:
  365. type: hostpath
  366. show_if: [["acl_enable", "=", false]]
  367. required: true
  368. - variable: additional_storage
  369. label: Additional Storage
  370. schema:
  371. type: list
  372. default: []
  373. items:
  374. - variable: storageEntry
  375. label: Storage Entry
  376. schema:
  377. type: dict
  378. attrs:
  379. - variable: type
  380. label: Type
  381. description: |
  382. ixVolume: Is dataset created automatically by the system.</br>
  383. Host Path: Is a path that already exists on the system.</br>
  384. SMB Share: Is a SMB share that is mounted to as a volume.
  385. schema:
  386. type: string
  387. required: true
  388. default: "ix_volume"
  389. enum:
  390. - value: "host_path"
  391. description: Host Path (Path that already exists on the system)
  392. - value: "ix_volume"
  393. description: ixVolume (Dataset created automatically by the system)
  394. - value: "cifs"
  395. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  396. - variable: read_only
  397. label: Read Only
  398. description: Mount the volume as read only.
  399. schema:
  400. type: boolean
  401. default: false
  402. - variable: mount_path
  403. label: Mount Path
  404. description: The path inside the container to mount the storage.
  405. schema:
  406. type: path
  407. required: true
  408. - variable: host_path_config
  409. label: Host Path Configuration
  410. schema:
  411. type: dict
  412. show_if: [["type", "=", "host_path"]]
  413. attrs:
  414. - variable: acl_enable
  415. label: Enable ACL
  416. description: Enable ACL for the storage.
  417. schema:
  418. type: boolean
  419. default: false
  420. - variable: acl
  421. label: ACL Configuration
  422. schema:
  423. type: dict
  424. show_if: [["acl_enable", "=", true]]
  425. attrs: []
  426. $ref:
  427. - "normalize/acl"
  428. - variable: path
  429. label: Host Path
  430. description: The host path to use for storage.
  431. schema:
  432. type: hostpath
  433. show_if: [["acl_enable", "=", false]]
  434. required: true
  435. - variable: ix_volume_config
  436. label: ixVolume Configuration
  437. description: The configuration for the ixVolume dataset.
  438. schema:
  439. type: dict
  440. show_if: [["type", "=", "ix_volume"]]
  441. $ref:
  442. - "normalize/ix_volume"
  443. attrs:
  444. - variable: acl_enable
  445. label: Enable ACL
  446. description: Enable ACL for the storage.
  447. schema:
  448. type: boolean
  449. default: false
  450. - variable: dataset_name
  451. label: Dataset Name
  452. description: The name of the dataset to use for storage.
  453. schema:
  454. type: string
  455. required: true
  456. default: "storage_entry"
  457. - variable: acl_entries
  458. label: ACL Configuration
  459. schema:
  460. type: dict
  461. show_if: [["acl_enable", "=", true]]
  462. attrs: []
  463. $ref:
  464. - "normalize/acl"
  465. - variable: cifs_config
  466. label: SMB Configuration
  467. description: The configuration for the SMB dataset.
  468. schema:
  469. type: dict
  470. show_if: [["type", "=", "cifs"]]
  471. attrs:
  472. - variable: server
  473. label: Server
  474. description: The server to mount the SMB share.
  475. schema:
  476. type: string
  477. required: true
  478. - variable: path
  479. label: Path
  480. description: The path to mount the SMB share.
  481. schema:
  482. type: string
  483. required: true
  484. - variable: username
  485. label: Username
  486. description: The username to use for the SMB share.
  487. schema:
  488. type: string
  489. required: true
  490. - variable: password
  491. label: Password
  492. description: The password to use for the SMB share.
  493. schema:
  494. type: string
  495. required: true
  496. private: true
  497. - variable: domain
  498. label: Domain
  499. description: The domain to use for the SMB share.
  500. schema:
  501. type: string
  502. - variable: labels
  503. label: ""
  504. group: Labels Configuration
  505. schema:
  506. type: list
  507. default: []
  508. items:
  509. - variable: label
  510. label: Label
  511. schema:
  512. type: dict
  513. attrs:
  514. - variable: key
  515. label: Key
  516. schema:
  517. type: string
  518. required: true
  519. - variable: value
  520. label: Value
  521. schema:
  522. type: string
  523. required: true
  524. - variable: containers
  525. label: Containers
  526. description: Containers where the label should be applied
  527. schema:
  528. type: list
  529. items:
  530. - variable: container
  531. label: Container
  532. schema:
  533. type: string
  534. required: true
  535. enum:
  536. - value: lazylibrarian
  537. description: lazylibrarian
  538. - variable: resources
  539. label: ""
  540. group: Resources Configuration
  541. schema:
  542. type: dict
  543. attrs:
  544. - variable: limits
  545. label: Limits
  546. schema:
  547. type: dict
  548. attrs:
  549. - variable: cpus
  550. label: CPUs
  551. description: CPUs limit for LazyLibrarian.
  552. schema:
  553. type: int
  554. default: 2
  555. required: true
  556. - variable: memory
  557. label: Memory (in MB)
  558. description: Memory limit for LazyLibrarian.
  559. schema:
  560. type: int
  561. default: 4096
  562. required: true