2015-11-30 14:18:26 +00:00
|
|
|
class fluentd::params {
|
2015-11-30 16:49:18 +00:00
|
|
|
# package params
|
2015-11-30 16:04:14 +00:00
|
|
|
$package_ensure = 'installed'
|
|
|
|
$package_name = 'td-agent'
|
|
|
|
$package_install_options = []
|
2015-11-30 16:49:18 +00:00
|
|
|
# service params
|
|
|
|
$service_manage = true
|
|
|
|
$service_name = 'td-agent'
|
|
|
|
$service_ensure = 'running'
|
|
|
|
$service_enable = true
|
2015-11-30 14:18:26 +00:00
|
|
|
|
|
|
|
case $::osfamily {
|
|
|
|
'Debian': {
|
|
|
|
case $::operatingsystem {
|
|
|
|
'Ubuntu': {
|
|
|
|
$manage_repo = true
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
fail("Unsupported osfamily: ${::operatingsystem}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
fail("Unsupported osfamily: ${::osfamily}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|