22fb5e6da0
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
24 lines
615 B
Puppet
24 lines
615 B
Puppet
# Class: exim::params
|
|
#
|
|
# This class holds parameters that need to be
|
|
# accessed by other classes.
|
|
class exim::params {
|
|
case $::osfamily {
|
|
'Redhat': {
|
|
$package = 'exim'
|
|
$service_name = 'exim'
|
|
$config_file = '/etc/exim/exim.conf'
|
|
$conf_dir = '/etc/exim/'
|
|
}
|
|
'Debian', 'Ubuntu': {
|
|
$package = 'exim4-daemon-light'
|
|
$service_name = 'exim4'
|
|
$config_file = '/etc/exim4/exim4.conf'
|
|
$conf_dir = '/etc/exim4'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} The 'exim' module only supports osfamily Ubuntu or Redhat(slaves only).")
|
|
}
|
|
}
|
|
}
|