1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-12-16 05:10:36 +00:00

minor changes

This commit is contained in:
Jan Krause 2015-12-09 16:04:28 +01:00
parent a08cd1f4f4
commit 641873546f
5 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# Configure package
# Configure config files/directories
#
class fluentd::config inherits fluentd {
@ -16,5 +16,4 @@ class fluentd::config inherits fluentd {
group => $::fluentd::user_group,
mode => '0750',
}
}

View File

@ -64,6 +64,7 @@ class fluentd (
validate_bool($service_manage)
validate_string($service_name)
validate_bool($service_enable)
if ! ($service_ensure in [ 'running', 'stopped' ]) {
fail('service_ensure parameter must be running or stopped')
}
@ -79,5 +80,4 @@ class fluentd (
Class['::Fluentd::Install'] ->
Class['::Fluentd::Config'] ->
Class['::Fluentd::Service']
}

View File

@ -40,7 +40,7 @@ define fluentd::plugin (
'gem': {
fluentd::plugin::gem { $name:
ensure => $ensure,
require => Class['Fluentd::Install']
require => Class['Fluentd::Install'],
}
}
'file': {
@ -49,7 +49,7 @@ define fluentd::plugin (
fluentd::plugin::file { $name:
ensure => $ensure,
source => $source,
require => Class['Fluentd::Install']
require => Class['Fluentd::Install'],
}
}
default: {

View File

@ -11,6 +11,6 @@ define fluentd::plugin::gem (
package { $name:
ensure => $ensure,
provider => 'fluentd_gem',
notify => Class['Fluentd::Service']
notify => Class['Fluentd::Service'],
}
}

View File

@ -1,4 +1,4 @@
# Configure package
# Configure service
#
class fluentd::service inherits fluentd {