questions.yaml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. immutable: true
  141. required: true
  142. - variable: scandir
  143. label: ClamAV Scan Storage
  144. description: The path to store ClamAV Scan storage.
  145. schema:
  146. type: dict
  147. attrs:
  148. - variable: type
  149. label: Type
  150. description: |
  151. ixVolume: Is dataset created automatically by the system.</br>
  152. Host Path: Is a path that already exists on the system.
  153. schema:
  154. type: string
  155. required: true
  156. immutable: true
  157. default: ixVolume
  158. enum:
  159. - value: hostPath
  160. description: Host Path (Path that already exists on the system)
  161. - value: ixVolume
  162. description: ixVolume (Dataset created automatically by the system)
  163. - variable: datasetName
  164. label: Dataset Name
  165. schema:
  166. type: string
  167. show_if: [["type", "=", "ixVolume"]]
  168. required: true
  169. hidden: true
  170. immutable: true
  171. default: scan-dir
  172. $ref:
  173. - "normalize/ixVolume"
  174. - variable: hostPath
  175. label: Host Path
  176. schema:
  177. type: hostpath
  178. show_if: [["type", "=", "hostPath"]]
  179. immutable: true
  180. required: true
  181. - variable: resources
  182. label: ""
  183. group: Resources Configuration
  184. schema:
  185. type: dict
  186. attrs:
  187. - variable: limits
  188. label: Limits
  189. schema:
  190. type: dict
  191. attrs:
  192. - variable: cpu
  193. label: CPU
  194. description: CPU limit for ClamAV.
  195. schema:
  196. type: string
  197. max_length: 6
  198. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  199. valid_chars_error: |
  200. Valid CPU limit formats are</br>
  201. - Plain Integer - eg. 1</br>
  202. - Float - eg. 0.5</br>
  203. - Milicpu - eg. 500m
  204. default: "4000m"
  205. required: true
  206. - variable: memory
  207. label: Memory
  208. description: Memory limit for ClamAV.
  209. schema:
  210. type: string
  211. max_length: 12
  212. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  213. valid_chars_error: |
  214. Valid Memory limit formats are</br>
  215. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  216. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  217. - Plain Integer in bytes - eg. 1024</br>
  218. - Exponent - eg. 134e6
  219. default: "8Gi"
  220. required: true