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:
parent
0f777de271
commit
adb39eabf0
2
files/td-agent.conf
Normal file
2
files/td-agent.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Include config files in the ./conf.d directory
|
||||||
|
@include conf.d/*.conf
|
19
manifests/config.pp
Normal file
19
manifests/config.pp
Normal 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',
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -60,6 +60,7 @@ class fluentd (
|
|||||||
class { '::fluentd::repo': }
|
class { '::fluentd::repo': }
|
||||||
}
|
}
|
||||||
|
|
||||||
class { '::fluentd::install': }
|
class { '::fluentd::install': } ->
|
||||||
|
class { '::fluentd::config': }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user