mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
b465108fcc
Check CentOS7.2(1511) / Redhat7.1 refs - https://td-agent-package-browser.herokuapp.com/2/redhat/ - http://docs.puppetlabs.com/puppet/latest/reference/type.html#yumrepo
33 lines
740 B
Puppet
33 lines
740 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
|
|
# config params
|
|
$config_path = '/etc/td-agent'
|
|
$conf_dir = "${config_path}/conf.d"
|
|
$config_file = "${config_path}/td-agent.conf"
|
|
# user params
|
|
$user_manage = true
|
|
$user_name = 'td-agent'
|
|
$user_group = 'td-agent'
|
|
$user_groups = ['adm']
|
|
|
|
case $::osfamily {
|
|
'Debian': {
|
|
$repo_manage = true
|
|
}
|
|
'Redhat': {
|
|
$repo_manage = true
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily}")
|
|
}
|
|
}
|
|
}
|