mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
adb39eabf0
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'.
20 lines
378 B
Puppet
20 lines
378 B
Puppet
# 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',
|
|
}
|
|
|
|
}
|