clamav: Added support for disabling automatic virus database updates.
This commit is contained in:
parent
49073dcc57
commit
1e4a792eb1
1 changed files with 12 additions and 1 deletions
|
@ -1,12 +1,23 @@
|
||||||
|
|
||||||
# Install Clam AntiVirus
|
# Install Clam AntiVirus
|
||||||
#
|
#
|
||||||
class clamav {
|
# === Parameters
|
||||||
|
#
|
||||||
|
# $update:
|
||||||
|
# Set to false to disable automatic virus database updates.
|
||||||
|
#
|
||||||
|
class clamav($update="true") {
|
||||||
|
|
||||||
package { "clamav":
|
package { "clamav":
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $update == false {
|
||||||
|
file { "/etc/cron.daily/freshclam":
|
||||||
|
ensure => absent,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue