
Parameterizes the exim module so that it can support multiple distributions. As part of this patch I also removed the explicit install of exim4-base and exim4-config on Ubuntu. Just installing exim4-daemon-light should be fine. Change-Id: Ie09c5fa01509ebfadc92b8540f04181a2b13b667 Reviewed-on: https://review.openstack.org/23289 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
45 lines
893 B
Puppet
45 lines
893 B
Puppet
class exim(
|
|
$mailman_domains = [],
|
|
$sysadmin = []
|
|
) {
|
|
|
|
include exim::params
|
|
|
|
package { $::exim::params::package:
|
|
ensure => present,
|
|
}
|
|
|
|
if ($::operatingsystem == 'Redhat') {
|
|
service { 'postfix':
|
|
ensure => stopped
|
|
}
|
|
}
|
|
|
|
service { 'exim':
|
|
ensure => running,
|
|
name => $::exim::params::service_name,
|
|
hasrestart => true,
|
|
subscribe => File[$::exim::params::config_file],
|
|
}
|
|
|
|
file { $::exim::params::config_file:
|
|
ensure => present,
|
|
content => template("${module_name}/exim4.conf.erb"),
|
|
group => 'root',
|
|
mode => '0444',
|
|
owner => 'root',
|
|
replace => true,
|
|
}
|
|
|
|
file { '/etc/aliases':
|
|
ensure => present,
|
|
content => template("${module_name}/aliases.erb"),
|
|
group => 'root',
|
|
mode => '0444',
|
|
owner => 'root',
|
|
replace => true,
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|