mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
Allow to install specific version of fluent plugins
This commit is contained in:
parent
6b915de23c
commit
9754e64490
@ -228,7 +228,8 @@ This module gives you the possibility to install plugins as gem or files.
|
|||||||
**gem installation**
|
**gem installation**
|
||||||
```puppet
|
```puppet
|
||||||
::fluentd::plugin { 'fluent-plugin-elasticsearch':
|
::fluentd::plugin { 'fluent-plugin-elasticsearch':
|
||||||
type => 'gem'
|
type => 'gem',
|
||||||
|
ensure => '0.1.3'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
**file installation**
|
**file installation**
|
||||||
|
@ -31,11 +31,6 @@ define fluentd::plugin (
|
|||||||
$source = undef,
|
$source = undef,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# parameter validation
|
|
||||||
if ! ($ensure in [ 'present', 'absent' ]) {
|
|
||||||
fail('ensure parameter must be present or absent')
|
|
||||||
}
|
|
||||||
|
|
||||||
case $type {
|
case $type {
|
||||||
'gem': {
|
'gem': {
|
||||||
fluentd::plugin::gem { $name:
|
fluentd::plugin::gem { $name:
|
||||||
@ -44,6 +39,10 @@ define fluentd::plugin (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
'file': {
|
'file': {
|
||||||
|
# parameter validation
|
||||||
|
if ! ($ensure in [ 'present', 'absent' ]) {
|
||||||
|
fail('ensure parameter must be present or absent')
|
||||||
|
}
|
||||||
validate_string($source)
|
validate_string($source)
|
||||||
|
|
||||||
fluentd::plugin::file { $name:
|
fluentd::plugin::file { $name:
|
||||||
|
Loading…
Reference in New Issue
Block a user