Puppet Class: haproxy::params
- Inherited by:
-
haproxy
- Defined in:
- manifests/params.pp
Overview
Class: haproxy::params
Defines all the variables used in the module.
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 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'manifests/params.pp', line 5
class haproxy::params {
$package_name = $::osfamily ? {
default => 'haproxy',
}
$service_name = $::osfamily ? {
default => 'haproxy',
}
$config_file_path = $::osfamily ? {
default => '/etc/haproxy/haproxy.cfg',
}
$config_file_mode = $::osfamily ? {
default => '0644',
}
$config_file_owner = $::osfamily ? {
default => 'root',
}
$config_file_group = $::osfamily ? {
default => 'root',
}
$config_dir_path = $::osfamily ? {
default => '/etc/haproxy',
}
$init_file_path = $::osfamily ? {
debian => '/etc/default/haproxy',
default => false,
}
$init_file_template = $::osfamily ? {
debian => 'haproxy/default.init-debian',
default => false,
}
case $::osfamily {
'Debian','RedHat','Amazon': { }
default: {
fail("${::operatingsystem} not supported. Review params.pp for extending support.")
}
}
}
|