c51538102d
When we put these all in by default, then people testing things or people who aren't even us get the mail on their systems configured to email us. Change-Id: Ib9d4160e0c81151bf040422c89621bc0fcefcd66
37 lines
779 B
Puppet
37 lines
779 B
Puppet
class exim($sysadmin=[]) {
|
|
package { 'exim4-base':
|
|
ensure => present;
|
|
}
|
|
package { 'exim4-config':
|
|
ensure => present;
|
|
}
|
|
package { 'exim4-daemon-light':
|
|
ensure => present,
|
|
require => [Package[exim4-base], Package[exim4-config]],
|
|
}
|
|
|
|
service { 'exim4':
|
|
ensure => running,
|
|
hasrestart => true,
|
|
subscribe => File['/etc/exim4/exim4.conf'],
|
|
}
|
|
|
|
file { '/etc/exim4/exim4.conf':
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 444,
|
|
ensure => 'present',
|
|
source => 'puppet:///modules/exim/exim4.conf',
|
|
replace => 'true',
|
|
}
|
|
|
|
file { '/etc/aliases':
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 444,
|
|
ensure => 'present',
|
|
content => template("exim/aliases.erb"),
|
|
replace => 'true',
|
|
}
|
|
}
|