1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-12-16 13:20:35 +00:00
puppet-fluentd/manifests/plugin/file.pp

21 lines
473 B
Puppet

# Install fluentd file plugins
#
define fluentd::plugin::file (
$ensure = present,
$source = undef,
) {
if $caller_module_name != $module_name {
fail("Use of private fluentd::plugin::file by ${caller_module_name}")
}
file { "${::fluentd::config_path}/plugin/${name}":
ensure => $ensure,
owner => $::fluentd::user_name,
group => $::fluentd::user_group,
mode => '0640',
source => $source,
notify => Class['Fluentd::Service']
}
}