1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-12 21:50:34 +00:00

if condition for manage_repo is now handled in fluentd::repo

This commit is contained in:
Max Wilhelm 2015-11-30 17:53:20 +01:00
parent 600970d5df
commit 2e98aaa051
2 changed files with 11 additions and 12 deletions

View File

@ -67,10 +67,7 @@ class fluentd (
fail('service_ensure parameter must be running or stopped')
}
if $manage_repo {
class { '::fluentd::repo': }
}
class { '::fluentd::repo': } ->
class { '::fluentd::install': } ->
class { '::fluentd::config': } ->
class { '::fluentd::service': }

View File

@ -1,6 +1,7 @@
# Configure package repository
#
class fluentd::repo {
class fluentd::repo inherits fluentd {
if $manage_repo {
case $::osfamily {
'Debian': {
include ::fluentd::repo::apt
@ -9,4 +10,5 @@ class fluentd::repo {
fail("No repo available for ${::osfamily}/${::operatingsystem}")
}
}
}
}