mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-13 21:50:34 +00:00
17 lines
333 B
ObjectPascal
17 lines
333 B
ObjectPascal
|
# 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'];
|
||
|
}
|
||
|
}
|