system-config/modules/exim/manifests/init.pp
James E. Blair 5dcec26308 Add initial mailman config.
Change-Id: I82cda9eb456c1ce3690eab8f558420c8a696ee25
2012-05-10 19:19:53 +00:00

37 lines
797 B
Puppet

class exim($sysadmin=[], $mailman_domains=[]) {
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',
content => template("exim/exim4.conf.erb"),
replace => 'true',
}
file { '/etc/aliases':
owner => 'root',
group => 'root',
mode => 444,
ensure => 'present',
content => template("exim/aliases.erb"),
replace => 'true',
}
}