summaryrefslogtreecommitdiff
path: root/puppet/modules/clamav/manifests/freshclam.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/clamav/manifests/freshclam.pp')
-rw-r--r--puppet/modules/clamav/manifests/freshclam.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/puppet/modules/clamav/manifests/freshclam.pp b/puppet/modules/clamav/manifests/freshclam.pp
new file mode 100644
index 00000000..b9827ede
--- /dev/null
+++ b/puppet/modules/clamav/manifests/freshclam.pp
@@ -0,0 +1,21 @@
+class clamav::freshclam {
+
+ package { 'clamav-freshclam': ensure => installed }
+
+ service {
+ 'freshclam':
+ ensure => running,
+ enable => true,
+ name => clamav-freshclam,
+ pattern => '/usr/bin/freshclam',
+ hasrestart => true;
+ }
+
+ file_line {
+ 'freshclam_notify':
+ path => '/etc/clamav/freshclam.conf',
+ line => 'NotifyClamd /etc/clamav/clamd.conf',
+ notify => Service[freshclam];
+ }
+
+}