From 53a899f0a3ebba800bf6c181821cf3d995b2c51e Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 16 Mar 2009 00:52:39 +0000 Subject: [PATCH] Add class for busy mail machines Signed-off-by: Stephen Gran --- modules/exim/manifests/init.pp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/modules/exim/manifests/init.pp b/modules/exim/manifests/init.pp index 93ea0b62f..265fda1dd 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, + } +} -- 2.20.1