questions.yaml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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: Resources Configuration
  9. description: Configure Resources for ClamAV
  10. questions:
  11. - variable: clamavConfig
  12. label: ""
  13. group: ClamAV Configuration
  14. schema:
  15. type: dict
  16. attrs:
  17. - variable: disableClamd
  18. label: Disable ClamD
  19. description: Do not start Clam daemon
  20. schema:
  21. type: boolean
  22. default: false
  23. - variable: disableFreshClamd
  24. label: Disable FreshClamD
  25. description: Do not start the FreshClam daemon
  26. schema:
  27. type: boolean
  28. default: false
  29. - variable: disableMilterd
  30. label: Disable MilterD
  31. description: Do not start the ClamAV-Milter daemon
  32. schema:
  33. type: boolean
  34. default: true
  35. - variable: clamdStartupTimeout
  36. label: ClamD Startup Timeout
  37. description: Seconds to wait for ClamD to start
  38. schema:
  39. type: int
  40. default: 1800
  41. required: true
  42. - variable: freshclamChecks
  43. label: Fresh Clam Checks
  44. description: Times to check per day for a new database.
  45. schema:
  46. type: int
  47. default: 1
  48. min: 1
  49. max: 50
  50. required: true
  51. - variable: additionalEnvs
  52. label: Additional Environment Variables
  53. description: Configure additional environment variables for ClamAV.
  54. schema:
  55. type: list
  56. default: []
  57. items:
  58. - variable: env
  59. label: Environment Variable
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: name
  64. label: Name
  65. schema:
  66. type: string
  67. required: true
  68. - variable: value
  69. label: Value
  70. schema:
  71. type: string
  72. required: true
  73. - variable: clamavNetwork
  74. label: ""
  75. group: Network Configuration
  76. schema:
  77. type: dict
  78. attrs:
  79. - variable: clamdPort
  80. label: ClamD Port
  81. description: The port for the ClamAV ClamD
  82. schema:
  83. type: int
  84. default: 30005
  85. min: 9000
  86. max: 65535
  87. required: true
  88. - variable: milterdPort
  89. label: MilterD Port
  90. description: The port for the ClamAV MilterD
  91. schema:
  92. type: int
  93. default: 30006
  94. min: 9000
  95. max: 65535
  96. required: true
  97. - variable: clamavStorage
  98. label: ""
  99. group: Storage Configuration
  100. schema:
  101. type: dict
  102. attrs:
  103. - variable: sigdb
  104. label: ClamAV Signature Database Storage
  105. description: The path to store ClamAV Signature Database.
  106. schema:
  107. type: dict
  108. attrs:
  109. - variable: type
  110. label: Type
  111. description: |
  112. ixVolume: Is dataset created automatically by the system.</br>
  113. Host Path: Is a path that already exists on the system.
  114. schema:
  115. type: string
  116. required: true
  117. immutable: true
  118. default: ixVolume
  119. enum:
  120. - value: hostPath
  121. description: Host Path (Path that already exists on the system)
  122. - value: ixVolume
  123. description: ixVolume (Dataset created automatically by the system)
  124. - variable: datasetName
  125. label: Dataset Name
  126. schema:
  127. type: string
  128. show_if: [["type", "=", "ixVolume"]]
  129. required: true
  130. hidden: true
  131. immutable: true
  132. default: sig-db
  133. $ref:
  134. - "normalize/ixVolume"
  135. - variable: hostPath
  136. label: Host Path
  137. schema:
  138. type: hostpath
  139. show_if: [["type", "=", "hostPath"]]
  140. required: true
  141. - variable: scandir
  142. label: ClamAV Scan Storage
  143. description: The path to store ClamAV Scan storage.
  144. schema:
  145. type: dict
  146. attrs:
  147. - variable: type
  148. label: Type
  149. description: |
  150. ixVolume: Is dataset created automatically by the system.</br>
  151. Host Path: Is a path that already exists on the system.
  152. schema:
  153. type: string
  154. required: true
  155. immutable: true
  156. default: ixVolume
  157. enum:
  158. - value: hostPath
  159. description: Host Path (Path that already exists on the system)
  160. - value: ixVolume
  161. description: ixVolume (Dataset created automatically by the system)
  162. - variable: datasetName
  163. label: Dataset Name
  164. schema:
  165. type: string
  166. show_if: [["type", "=", "ixVolume"]]
  167. required: true
  168. hidden: true
  169. immutable: true
  170. default: scan-dir
  171. $ref:
  172. - "normalize/ixVolume"
  173. - variable: hostPath
  174. label: Host Path
  175. schema:
  176. type: hostpath
  177. show_if: [["type", "=", "hostPath"]]
  178. required: true
  179. - variable: resources
  180. label: ""
  181. group: Resources Configuration
  182. schema:
  183. type: dict
  184. attrs:
  185. - variable: limits
  186. label: Limits
  187. schema:
  188. type: dict
  189. attrs:
  190. - variable: cpu
  191. label: CPU
  192. description: CPU limit for ClamAV.
  193. schema:
  194. type: string
  195. max_length: 6
  196. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  197. valid_chars_error: |
  198. Valid CPU limit formats are</br>
  199. - Plain Integer - eg. 1</br>
  200. - Float - eg. 0.5</br>
  201. - Milicpu - eg. 500m
  202. default: "4000m"
  203. required: true
  204. - variable: memory
  205. label: Memory
  206. description: Memory limit for ClamAV.
  207. schema:
  208. type: string
  209. max_length: 12
  210. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  211. valid_chars_error: |
  212. Valid Memory limit formats are</br>
  213. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  214. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  215. - Plain Integer in bytes - eg. 1024</br>
  216. - Exponent - eg. 134e6
  217. default: "8Gi"
  218. required: true