1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2026-06-14 10:31:17 +00:00

Merge pull request #8 from mhrabovcin/master

Allow to install specific version of fluent plugins
This commit is contained in:
Max Wilhelm
2016-05-13 10:16:40 +02:00
12 changed files with 16 additions and 6 deletions
+2 -1
View File
@@ -228,7 +228,8 @@ This module gives you the possibility to install plugins as gem or files.
**gem installation**
```puppet
::fluentd::plugin { 'fluent-plugin-elasticsearch':
type => 'gem'
type => 'gem',
ensure => '0.1.3'
}
```
**file installation**
+4 -5
View File
@@ -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:
+1
View File
@@ -27,6 +27,7 @@ describe 'fluentd::config', :type => :class do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
+1
View File
@@ -19,6 +19,7 @@ describe 'fluentd::install', :type => :class do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
include_examples 'when called with no parameters'
+1
View File
@@ -9,6 +9,7 @@ describe 'fluentd::repo', :type => :class do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
it {
+1
View File
@@ -20,6 +20,7 @@ describe 'fluentd::config', :type => :class do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
+1
View File
@@ -17,6 +17,7 @@ describe 'fluentd', :type => :class do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
+1
View File
@@ -18,6 +18,7 @@ describe 'fluentd::user', :type => :class do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
+1
View File
@@ -7,6 +7,7 @@ describe 'fluentd::filter' do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
let(:pre_condition) { 'include fluentd' }
+1
View File
@@ -7,6 +7,7 @@ describe 'fluentd::match' do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
let(:pre_condition) { 'include fluentd' }
+1
View File
@@ -7,6 +7,7 @@ describe 'fluentd::plugin' do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
let(:pre_condition) { 'include fluentd' }
+1
View File
@@ -7,6 +7,7 @@ describe 'fluentd::source' do
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
let(:pre_condition) { 'include fluentd' }