questions.yaml 20 KB

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