eximconf: more comments
[mirror/dsa-puppet.git] / modules / clamav / manifests / init.pp
index ef745a6..2126e8e 100644 (file)
@@ -1,3 +1,11 @@
+# = Class: clamav
+#
+# Manage a clamav installation
+#
+# == Sample Usage:
+#
+#   include clamav
+#
 class clamav {
        package { [
                        'clamav-daemon',
@@ -32,8 +40,17 @@ class clamav {
                '/var/lib/clamav/mbl.ndb',
                '/var/lib/clamav/MSRBL-Images.hdb',
                '/var/lib/clamav/MSRBL-SPAM.ndb',
+               '/var/lib/clamav/msrbl-images.hdb',
+               '/var/lib/clamav/msrbl-spam.ndb',
        ]:
-               ensure  => absent
+               ensure => absent,
+               notify => Service['clamav-daemon']
+       }
+       file { '/var/lib/clamav/.nobackup':
+               owner   => clamav,
+               mode    => '0644',
+               content => '',
+               require => Package['clamav-daemon']
        }
        file { '/etc/clamav-unofficial-sigs.dsa.conf':
                require => Package['clamav-unofficial-sigs'],
@@ -43,5 +60,11 @@ class clamav {
                require => Package['clamav-unofficial-sigs'],
                source  => [ 'puppet:///modules/clamav/clamav-unofficial-sigs.conf' ]
        }
+       file { '/var/cache/clamav-unofficial-sigs/.nobackup':
+               owner   => clamav,
+               mode    => '0644',
+               content => '',
+               require => Package['clamav-unofficial-sigs']
+       }
 
 }