X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fexim%2Fmanifests%2Finit.pp;h=8bdb36955a2ffffa7385e68cfdea28cbf161f5fe;hb=f316b2a1e6ab4189e9d5c27e2668ce61e09f7a86;hp=80f44d88c5fbf0ce775e538a238e1e9fb2437a8a;hpb=f26d701aaead086614b9d335e1b9ade03d5ea807;p=dsa-puppet.git diff --git a/modules/exim/manifests/init.pp b/modules/exim/manifests/init.pp index 80f44d88..8bdb3695 100644 --- a/modules/exim/manifests/init.pp +++ b/modules/exim/manifests/init.pp @@ -2,27 +2,6 @@ class exim { package { exim4-daemon-heavy: ensure => installed } - case $hostname { - handel: { - file { - "/etc/exim4/exim4.conf": - content => template("exim/eximconf.erb"), - require => Package["exim4-daemon-heavy"], - notify => Exec["exim4 reload"] - ; - } - } - default: { - file { - "/etc/exim4/exim4.conf": - source => [ "puppet:///exim/per-host/$fqdn/exim4.conf", - "puppet:///exim/common/exim4.conf" ], - require => Package["exim4-daemon-heavy"], - notify => Exec["exim4 reload"] - ; - } - } - } file { "/etc/exim4/": ensure => directory, @@ -36,19 +15,27 @@ class exim { owner => root, group => Debian-exim, mode => 750, + require => Package["exim4-daemon-heavy"], purge => true ; + "/etc/mailname": + content => template("exim/mailname.erb"), + ; "/etc/exim4/exim4.conf": - source => [ "puppet:///exim/per-host/$fqdn/exim4.conf", - "puppet:///exim/common/exim4.conf" ], + content => template("exim/eximconf.erb"), require => Package["exim4-daemon-heavy"], notify => Exec["exim4 reload"] - ; + ; "/etc/exim4/manualroute": require => Package["exim4-daemon-heavy"], source => [ "puppet:///exim/per-host/$fqdn/manualroute", "puppet:///exim/common/manualroute" ] ; + "/etc/exim4/host_blacklist": + require => Package["exim4-daemon-heavy"], + source => [ "puppet:///exim/per-host/$fqdn/host_blacklist", + "puppet:///exim/common/host_blacklist" ] + ; "/etc/exim4/blacklist": require => Package["exim4-daemon-heavy"], source => [ "puppet:///exim/per-host/$fqdn/blacklist", @@ -158,8 +145,3 @@ class exim { refreshonly => true, } } - -class eximmx inherits exim { - include clamav - include postgrey -}