mirror of
https://github.com/krislamo/puppet-fluentd
synced 2025-09-11 16:19:29 +00:00
Allow to install specific version of fluent plugins
This commit is contained in:
@@ -31,11 +31,6 @@ define fluentd::plugin (
|
||||
$source = undef,
|
||||
) {
|
||||
|
||||
# parameter validation
|
||||
if ! ($ensure in [ 'present', 'absent' ]) {
|
||||
fail('ensure parameter must be present or absent')
|
||||
}
|
||||
|
||||
case $type {
|
||||
'gem': {
|
||||
fluentd::plugin::gem { $name:
|
||||
@@ -44,6 +39,10 @@ define fluentd::plugin (
|
||||
}
|
||||
}
|
||||
'file': {
|
||||
# parameter validation
|
||||
if ! ($ensure in [ 'present', 'absent' ]) {
|
||||
fail('ensure parameter must be present or absent')
|
||||
}
|
||||
validate_string($source)
|
||||
|
||||
fluentd::plugin::file { $name:
|
||||
|
Reference in New Issue
Block a user