questions.yaml 21 KB

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