questions.yaml 18 KB

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