1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-12 21:50:34 +00:00
puppet-fluentd/manifests/params.pp
Kris Lamoureux 6620a30633
Upgrade to td-agent v4 on older Puppet installs
The fluentd_gem provider for installing fluentd plugins uses
Puppet's built-in gem provider. Unfortunately, that gem provider
on our Puppet version is not compatible with td-agent's new embedded
Ruby since it includes the no-rdoc and no-ri flags deprecated and
replaced by the no-document flag. This install function override
replaces the flags and might be removable after a Puppet upgrade.
2022-05-18 15:24:34 -04:00

36 lines
803 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"
$conf_dir_manage = false
$config_file = "${config_path}/td-agent.conf"
# user params
$user_manage = true
$user_name = 'td-agent'
$user_group = 'td-agent'
$user_groups = ['adm']
# repo params
$repo_version = 4
case $::osfamily {
'Debian': {
$repo_manage = true
}
'Redhat': {
$repo_manage = true
}
default: {
fail("Unsupported osfamily: ${::osfamily}")
}
}
}