mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
600970d5df
configures the fluentd (td-agent) service
29 lines
636 B
Puppet
29 lines
636 B
Puppet
class fluentd::params {
|
|
$ensure = 'present'
|
|
# 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}")
|
|
}
|
|
}
|
|
}
|