1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-12 21:50:34 +00:00
puppet-fluentd/manifests/plugin/file.pp

21 lines
438 B
ObjectPascal
Raw Normal View History

2015-12-03 10:59:51 +00:00
# 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 { "/etc/td-agent/plugin/${name}":
ensure => $ensure,
owner => 'td-agent',
group => 'td-agent',
mode => '0640',
source => $source,
2015-12-04 12:24:01 +00:00
notify => Class['Fluentd::Service']
2015-12-03 10:59:51 +00:00
}
}