mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 05:10:36 +00:00
minor changes
This commit is contained in:
parent
a08cd1f4f4
commit
641873546f
@ -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',
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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']
|
||||
|
||||
}
|
||||
|
@ -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: {
|
||||
|
@ -11,6 +11,6 @@ define fluentd::plugin::gem (
|
||||
package { $name:
|
||||
ensure => $ensure,
|
||||
provider => 'fluentd_gem',
|
||||
notify => Class['Fluentd::Service']
|
||||
notify => Class['Fluentd::Service'],
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Configure package
|
||||
# Configure service
|
||||
#
|
||||
class fluentd::service inherits fluentd {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user