clamav: Added support for disabling automatic virus database updates.

This commit is contained in:
Timo Mkinen 2013-06-18 13:50:17 +03:00
parent 49073dcc57
commit 1e4a792eb1

View file

@ -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,
}
}
} }