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}")
|
|
|
|
}
|
|
|
|
|
2015-12-04 13:20:11 +00:00
|
|
|
file { "${::fluentd::config_path}/plugin/${name}":
|
2015-12-03 10:59:51 +00:00
|
|
|
ensure => $ensure,
|
2015-12-04 13:20:11 +00:00
|
|
|
owner => $::fluentd::user_name,
|
|
|
|
group => $::fluentd::user_group,
|
2015-12-03 10:59:51 +00:00
|
|
|
mode => '0640',
|
|
|
|
source => $source,
|
2015-12-04 12:24:01 +00:00
|
|
|
notify => Class['Fluentd::Service']
|
2015-12-03 10:59:51 +00:00
|
|
|
}
|
|
|
|
}
|