diff --git a/clamav/manifests/init.pp b/clamav/manifests/init.pp index 21c613e..0dda0fe 100644 --- a/clamav/manifests/init.pp +++ b/clamav/manifests/init.pp @@ -1,12 +1,23 @@ # Install Clam AntiVirus # -class clamav { +# === Parameters +# +# $update: +# Set to false to disable automatic virus database updates. +# +class clamav($update="true") { package { "clamav": ensure => installed, } + if $update == false { + file { "/etc/cron.daily/freshclam": + ensure => absent, + } + } + }