mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
22 lines
535 B
Puppet
22 lines
535 B
Puppet
# Configure config files/directories
|
|
#
|
|
class fluentd::config inherits fluentd {
|
|
|
|
file { $::fluentd::config_file:
|
|
ensure => file,
|
|
owner => 'root',
|
|
group => 'root',
|
|
source => 'puppet:///modules/fluentd/td-agent.conf',
|
|
notify => Class['Fluentd::Service'],
|
|
}
|
|
|
|
file { $::fluentd::conf_dir:
|
|
ensure => 'directory',
|
|
recurse => $::fluentd::conf_dir_manage,
|
|
purge => $::fluentd::conf_dir_manage,
|
|
owner => $::fluentd::user_name,
|
|
group => $::fluentd::user_group,
|
|
mode => '0750',
|
|
}
|
|
}
|