1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-12-16 13:20:35 +00:00

Merge pull request #15 from lzecca78/master

added boolean param for enabling fluentd::conf_dir
This commit is contained in:
Max Wilhelm 2017-07-25 15:13:28 +02:00 committed by GitHub
commit d27479eb17
3 changed files with 11 additions and 4 deletions

View File

@ -12,6 +12,8 @@ class fluentd::config inherits fluentd {
file { $::fluentd::conf_dir:
ensure => 'directory',
recurse => $::fluentd::params::conf_dir_manage,
purge => $::fluentd::params::conf_dir_manage,
owner => $::fluentd::user_name,
group => $::fluentd::user_group,
mode => '0750',

View File

@ -8,6 +8,9 @@
# [*repo_manage*]
# Include repository to install recent fluentd (td-agent) from
# Default: 'true'
# [*conf_dir_manage*]
# Exclusively handle config files into fluentd::conf_dir. Other files not created by puppet, will be deleted
# Default: 'false'
# [*package_ensure*]
# Package ensure
# Default: 'installed'
@ -63,6 +66,7 @@ class fluentd (
$service_enable = $::fluentd::params::service_enable,
$config_path = $::fluentd::params::config_path,
$conf_dir = $::fluentd::params::conf_dir,
$conf_dir_manage = $::fluentd::params::conf_dir_manage,
$config_file = $::fluentd::params::config_file,
$user_manage = $::fluentd::params::user_manage,
$user_name = $::fluentd::params::user_name,

View File

@ -11,6 +11,7 @@ class fluentd::params {
# 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