]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/clamav/manifests/init.pp
Break eximmx class up into clamav and postgrey classes. We can still
[dsa-puppet.git] / modules / clamav / manifests / init.pp
1 class clamav {
2     package { "clamav-daemon": ensure => latest;
3               "clamav-freshclam": ensure => latest;
4     }
5
6     file {
7         "/etc/clamav/clamd.conf":
8           source  => "puppet:///clamav/clamd.conf",
9           require => Package["clamav-daemon"],
10           notify  => Exec["clamav-daemon restart"]
11           ;
12     }
13
14     file {
15         "/etc/clamav/freshclam.conf":
16           source  => "puppet:///clamav/freshclam.conf",
17           require => Package["clamav-freshclam"],
18           notify  => Exec["clamav-freshclam restart"]
19           ;
20     }
21     exec { "clamav-daemon restart":
22         path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
23         refreshonly => true,
24     }
25     exec { "clamav-freshclam restart":
26         path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
27         refreshonly => true,
28     }
29 }
30