mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
7821317f84
this will manage the user if is set to true. This will add the td-agent user to the user group 'adm', so td-agent can view log files under /var/log/*.
37 lines
856 B
Puppet
37 lines
856 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': {
|
|
case $::operatingsystem {
|
|
'Ubuntu': {
|
|
$manage_repo = true
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::operatingsystem}")
|
|
}
|
|
}
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily}")
|
|
}
|
|
}
|
|
}
|