mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
28 lines
597 B
Puppet
28 lines
597 B
Puppet
class fluentd::params {
|
|
# package params
|
|
$package_ensure = 'installed'
|
|
$package_name = 'td-agent'
|
|
$package_install_options = []
|
|
# service params
|
|
$service_manage = true
|
|
$service_name = 'td-agent'
|
|
$service_ensure = 'running'
|
|
$service_enable = true
|
|
|
|
case $::osfamily {
|
|
'Debian': {
|
|
case $::operatingsystem {
|
|
'Ubuntu': {
|
|
$manage_repo = true
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::operatingsystem}")
|
|
}
|
|
}
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily}")
|
|
}
|
|
}
|
|
}
|