1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2025-09-08 15:19:30 +00:00

added definition to install plugins

This commit is contained in:
Max Wilhelm
2015-12-03 11:59:51 +01:00
parent 98f55bd1fd
commit b0a98aa149
4 changed files with 88 additions and 0 deletions

20
manifests/plugin/file.pp Normal file
View File

@@ -0,0 +1,20 @@
# 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,
notify => Class['Fluentd::Service'];
}
}

16
manifests/plugin/gem.pp Normal file
View File

@@ -0,0 +1,16 @@
# Install fluentd gem plugins
#
define fluentd::plugin::gem (
$ensure = present,
) {
if $caller_module_name != $module_name {
fail("Use of private fluentd::plugin::gem by ${caller_module_name}")
}
package { $name:
ensure => $ensure,
provider => 'fluentd_gem',
notify => Class['Fluentd::Service'];
}
}