class exim {
- package { exim4-daemon-heavy: ensure => latest }
+ package { exim4-daemon-heavy: ensure => installed }
file {
"/etc/exim4/":
mode => 755,
purge => true
;
+ "/etc/exim4/ssl":
+ 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":
- 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"],
+ 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"],
;
"/etc/exim4/locals":
require => Package["exim4-daemon-heavy"],
- source => [ "puppet:///exim/per-host/$fqdn/locals",
- "puppet:///exim/common/locals" ]
+ content => template("exim/locals.erb")
;
"/etc/exim4/localusers":
require => Package["exim4-daemon-heavy"],
;
"/etc/exim4/virtualdomains":
require => Package["exim4-daemon-heavy"],
- source => [ "puppet:///exim/per-host/$fqdn/virtualdomains",
- "puppet:///exim/common/virtualdomains" ]
+ content => template("exim/virtualdomains.erb")
;
"/etc/exim4/whitelist":
require => Package["exim4-daemon-heavy"],
source => [ "puppet:///exim/per-host/$fqdn/logrotate-exim4-paniclog",
"puppet:///exim/common/logrotate-exim4-paniclog" ]
;
+ "/etc/exim4/local-auto.conf":
+ require => Package["exim4-daemon-heavy"],
+ content => template("exim-local-auto.erb"),
+ notify => Exec["exim4 reload"]
+ ;
+ "/etc/exim4/ssl/thishost.crt":
+ require => Package["exim4-daemon-heavy"],
+ source => "puppet:///exim/certs/$fqdn.crt",
+ owner => root,
+ group => Debian-exim,
+ mode => 640
+ ;
+ "/etc/exim4/ssl/thishost.key":
+ require => Package["exim4-daemon-heavy"],
+ source => "puppet:///exim/certs/$fqdn.key",
+ owner => root,
+ group => Debian-exim,
+ mode => 640
+ ;
+ "/etc/exim4/ssl/ca.crt":
+ require => Package["exim4-daemon-heavy"],
+ source => "puppet:///exim/certs/ca.crt",
+ owner => root,
+ group => Debian-exim,
+ mode => 640
+ ;
+ "/etc/exim4/ssl/ca.crl":
+ require => Package["exim4-daemon-heavy"],
+ source => "puppet:///exim/certs/ca.crl",
+ owner => root,
+ group => Debian-exim,
+ mode => 640
+ ;
}
exec { "exim4 reload":
refreshonly => true,
}
}
-