Puppet Class: mailhog::params
- Inherited by:
-
mailhog
- Defined in:
- manifests/params.pp
Overview
Class to manage mailhog parameters.
Dont include this class directly.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'manifests/params.pp', line 5
class mailhog::params () {
$install_dir = '/usr/bin'
$install_method = 'package'
$manage_service = true
$manage_user = true
$package_name = 'mailhog'
$package_version = 'present'
$service_name = 'mailhog'
$wget_source = undef
case $::osfamily {
'Debian': {
case $::operatingsystemrelease {
/(7.*|14\.04.*)/ : {
$service_provider = 'debian'
}
default : {
$service_provider = 'systemd'
}
}
}
'RedHat': {
case $::operatingsystemrelease {
/6.*/ : {
$service_provider = 'redhat'
}
default : {
$service_provider = 'systemd'
}
}
}
default: {
fail("Unsupported osfamily ${::osfamily}, currently only supports Debian and RedHat")
}
}
}
|