From: Stephen Gran Date: Mon, 16 Mar 2009 00:52:39 +0000 (+0000) Subject: Add class for busy mail machines X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=53a899f0a3ebba800bf6c181821cf3d995b2c51e;p=dsa-puppet.git Add class for busy mail machines Signed-off-by: Stephen Gran --- diff --git a/modules/exim/manifests/init.pp b/modules/exim/manifests/init.pp index 93ea0b62..265fda1d 100644 --- a/modules/exim/manifests/init.pp +++ b/modules/exim/manifests/init.pp @@ -92,3 +92,31 @@ class exim { 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, + } +}