4f5192e0a6
This time, make the default value false instead of empty string.
This reverts commit 99d3283dc2
Change-Id: I88108ff75f1c2bd3aa78856c186312340258ec3c
73 lines
1.7 KiB
Puppet
73 lines
1.7 KiB
Puppet
class exim(
|
|
$mailman_domains = [],
|
|
$queue_interval = '30m',
|
|
$queue_run_max = '5',
|
|
$queue_smtp_domains = '',
|
|
$smarthost = false,
|
|
$sysadmin = []
|
|
) {
|
|
|
|
include exim::params
|
|
|
|
package { $::exim::params::package:
|
|
ensure => present,
|
|
}
|
|
|
|
if ($::osfamily == 'RedHat') {
|
|
service { 'postfix':
|
|
ensure => stopped
|
|
}
|
|
file { $::exim::params::sysdefault_file:
|
|
ensure => present,
|
|
content => template("${module_name}/exim.sysconfig.erb"),
|
|
group => 'root',
|
|
mode => '0444',
|
|
owner => 'root',
|
|
replace => true,
|
|
require => Package[$::exim::params::package],
|
|
}
|
|
}
|
|
|
|
if ($::osfamily == 'Debian') {
|
|
file { $::exim::params::sysdefault_file:
|
|
ensure => present,
|
|
content => template("${module_name}/exim4.default.erb"),
|
|
group => 'root',
|
|
mode => '0444',
|
|
owner => 'root',
|
|
replace => true,
|
|
require => Package[$::exim::params::package],
|
|
}
|
|
}
|
|
|
|
service { 'exim':
|
|
ensure => running,
|
|
name => $::exim::params::service_name,
|
|
hasrestart => true,
|
|
subscribe => [File[$::exim::params::config_file],
|
|
File[$::exim::params::sysdefault_file]],
|
|
require => Package[$::exim::params::package],
|
|
}
|
|
|
|
file { $::exim::params::config_file:
|
|
ensure => present,
|
|
content => template("${module_name}/exim4.conf.erb"),
|
|
group => 'root',
|
|
mode => '0444',
|
|
owner => 'root',
|
|
replace => true,
|
|
require => Package[$::exim::params::package],
|
|
}
|
|
|
|
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
|