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-12-04 13:20:11 +00:00
|
|
|
# config params
|
|
|
|
$config_path = '/etc/td-agent'
|
|
|
|
$conf_dir = "${config_path}/conf.d"
|
2017-07-24 12:33:21 +00:00
|
|
|
$conf_dir_manage = false
|
2015-12-04 13:20:11 +00:00
|
|
|
$config_file = "${config_path}/td-agent.conf"
|
|
|
|
# user params
|
2015-12-22 12:56:46 +00:00
|
|
|
$user_manage = true
|
|
|
|
$user_name = 'td-agent'
|
|
|
|
$user_group = 'td-agent'
|
|
|
|
$user_groups = ['adm']
|
2015-11-30 14:18:26 +00:00
|
|
|
|
|
|
|
case $::osfamily {
|
|
|
|
'Debian': {
|
2016-01-22 23:32:29 +00:00
|
|
|
$repo_manage = true
|
2015-11-30 14:18:26 +00:00
|
|
|
}
|
2016-01-26 09:07:01 +00:00
|
|
|
'Redhat': {
|
|
|
|
$repo_manage = true
|
|
|
|
}
|
2015-11-30 14:18:26 +00:00
|
|
|
default: {
|
|
|
|
fail("Unsupported osfamily: ${::osfamily}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|