mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +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 {
|
class fluentd::config inherits fluentd {
|
||||||
|
|
||||||
@ -16,5 +16,4 @@ class fluentd::config inherits fluentd {
|
|||||||
group => $::fluentd::user_group,
|
group => $::fluentd::user_group,
|
||||||
mode => '0750',
|
mode => '0750',
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -64,6 +64,7 @@ class fluentd (
|
|||||||
validate_bool($service_manage)
|
validate_bool($service_manage)
|
||||||
validate_string($service_name)
|
validate_string($service_name)
|
||||||
validate_bool($service_enable)
|
validate_bool($service_enable)
|
||||||
|
|
||||||
if ! ($service_ensure in [ 'running', 'stopped' ]) {
|
if ! ($service_ensure in [ 'running', 'stopped' ]) {
|
||||||
fail('service_ensure parameter must be running or stopped')
|
fail('service_ensure parameter must be running or stopped')
|
||||||
}
|
}
|
||||||
@ -79,5 +80,4 @@ class fluentd (
|
|||||||
Class['::Fluentd::Install'] ->
|
Class['::Fluentd::Install'] ->
|
||||||
Class['::Fluentd::Config'] ->
|
Class['::Fluentd::Config'] ->
|
||||||
Class['::Fluentd::Service']
|
Class['::Fluentd::Service']
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ define fluentd::plugin (
|
|||||||
'gem': {
|
'gem': {
|
||||||
fluentd::plugin::gem { $name:
|
fluentd::plugin::gem { $name:
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
require => Class['Fluentd::Install']
|
require => Class['Fluentd::Install'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'file': {
|
'file': {
|
||||||
@ -49,7 +49,7 @@ define fluentd::plugin (
|
|||||||
fluentd::plugin::file { $name:
|
fluentd::plugin::file { $name:
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
source => $source,
|
source => $source,
|
||||||
require => Class['Fluentd::Install']
|
require => Class['Fluentd::Install'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
@ -11,6 +11,6 @@ define fluentd::plugin::gem (
|
|||||||
package { $name:
|
package { $name:
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
provider => 'fluentd_gem',
|
provider => 'fluentd_gem',
|
||||||
notify => Class['Fluentd::Service']
|
notify => Class['Fluentd::Service'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Configure package
|
# Configure service
|
||||||
#
|
#
|
||||||
class fluentd::service inherits fluentd {
|
class fluentd::service inherits fluentd {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user