--- /dev/null
+class clamav {
+ package { "clamav-daemon": ensure => latest;
+ "clamav-freshclam": ensure => latest;
+ }
+
+ file {
+ "/etc/clamav/clamd.conf":
+ source => "puppet:///clamav/clamd.conf",
+ require => Package["clamav-daemon"],
+ notify => Exec["clamav-daemon restart"]
+ ;
+ }
+
+ file {
+ "/etc/clamav/freshclam.conf":
+ source => "puppet:///clamav/freshclam.conf",
+ require => Package["clamav-freshclam"],
+ notify => Exec["clamav-freshclam restart"]
+ ;
+ }
+ exec { "clamav-daemon restart":
+ path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
+ refreshonly => true,
+ }
+ exec { "clamav-freshclam restart":
+ path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
+ refreshonly => true,
+ }
+}
+
}
class eximmx inherits exim {
- package { "clamav-daemon": ensure => latest;
- "postgrey": ensure => installed;
- }
-
- file {
- "/etc/default/postgrey":
- source => "puppet:///exim/common/postgrey-default",
- require => Package["postgrey"],
- notify => Exec["postgrey restart"]
- ;
- "/etc/clamav/clamd.conf":
- source => "puppet:///exim/common/clamd.conf",
- require => Package["clamav-daemon"],
- notify => Exec["clamav-daemon restart"]
- ;
- }
-
- exec { "clamav-daemon restart":
- path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
- refreshonly => true,
- }
- exec { "postgrey restart":
- path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
- refreshonly => true,
- }
+ include clamav;
+ include postgrey;
}
--- /dev/null
+class postgrey {
+ package { "postgrey": ensure => installed; }
+
+ file {
+ "/etc/default/postgrey":
+ source => "puppet:///exim/common/postgrey-default",
+ require => Package["postgrey"],
+ notify => Exec["postgrey restart"]
+ ;
+ }
+
+ exec { "postgrey restart":
+ path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
+ refreshonly => true,
+ }
+}