2015-12-09 15:04:28 +00:00
|
|
|
# Configure config files/directories
|
2015-11-30 16:17:54 +00:00
|
|
|
#
|
|
|
|
class fluentd::config inherits fluentd {
|
|
|
|
|
2015-12-07 10:09:31 +00:00
|
|
|
file { $::fluentd::config_file:
|
|
|
|
ensure => file,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
source => 'puppet:///modules/fluentd/td-agent.conf',
|
|
|
|
notify => Class['Fluentd::Service'],
|
2015-11-30 16:17:54 +00:00
|
|
|
}
|
|
|
|
|
2015-12-07 10:09:31 +00:00
|
|
|
file { $::fluentd::conf_dir:
|
2017-07-24 12:33:21 +00:00
|
|
|
ensure => 'directory',
|
2017-07-25 14:10:06 +00:00
|
|
|
recurse => $::fluentd::conf_dir_manage,
|
|
|
|
purge => $::fluentd::conf_dir_manage,
|
2017-07-24 12:33:21 +00:00
|
|
|
owner => $::fluentd::user_name,
|
|
|
|
group => $::fluentd::user_group,
|
|
|
|
mode => '0750',
|
2015-11-30 16:17:54 +00:00
|
|
|
}
|
|
|
|
}
|