1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-12-16 05:10:36 +00:00

added fluentd::config

this class overwrites the installation default 'td-agent.conf' with and include of the created '/etc/td-agent/conf.d' directory. All sources, matches and filters will be placed as single files in '/etc/td-agent/conf.d'.
This commit is contained in:
Max Wilhelm 2015-11-30 17:17:54 +01:00
parent 0f777de271
commit adb39eabf0
3 changed files with 23 additions and 1 deletions

2
files/td-agent.conf Normal file
View File

@ -0,0 +1,2 @@
# Include config files in the ./conf.d directory
@include conf.d/*.conf

19
manifests/config.pp Normal file
View File

@ -0,0 +1,19 @@
# Configure package
#
class fluentd::config inherits fluentd {
file { '/etc/td-agent/td-agent.conf' :
ensure => file,
owner => 'root',
group => 'root',
source => "puppet:///modules/fluentd/td-agent.conf"
}
file {'/etc/td-agent/conf.d':
ensure => 'directory',
owner => 'td-agent',
group => 'td-agent',
mode => '0750',
}
}

View File

@ -60,6 +60,7 @@ class fluentd (
class { '::fluentd::repo': }
}
class { '::fluentd::install': }
class { '::fluentd::install': } ->
class { '::fluentd::config': }
}