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,
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":
+ 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" ]
+ content => template("exim/manualroute.erb")
+ ;
+ "/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/logrotate-exim4-paniclog",
"puppet:///exim/common/logrotate-exim4-paniclog" ]
;
- "/etc/exim4/local-settings.conf":
- require => Package["exim4-daemon-heavy"],
- source => [ "puppet:///exim/per-host/$fqdn/local-settings.conf",
- "puppet:///exim/common/local-settings.conf" ],
- notify => Exec["exim4 reload"]
- ;
"/etc/exim4/local-auto.conf":
require => Package["exim4-daemon-heavy"],
content => template("exim-local-auto.erb"),
refreshonly => true,
}
}
-
-class eximmx inherits exim {
- include clamav
- include postgrey
-}