mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
if condition for manage_repo is now handled in fluentd::repo
This commit is contained in:
parent
600970d5df
commit
2e98aaa051
@ -67,10 +67,7 @@ class fluentd (
|
|||||||
fail('service_ensure parameter must be running or stopped')
|
fail('service_ensure parameter must be running or stopped')
|
||||||
}
|
}
|
||||||
|
|
||||||
if $manage_repo {
|
class { '::fluentd::repo': } ->
|
||||||
class { '::fluentd::repo': }
|
|
||||||
}
|
|
||||||
|
|
||||||
class { '::fluentd::install': } ->
|
class { '::fluentd::install': } ->
|
||||||
class { '::fluentd::config': } ->
|
class { '::fluentd::config': } ->
|
||||||
class { '::fluentd::service': }
|
class { '::fluentd::service': }
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
# Configure package repository
|
# Configure package repository
|
||||||
#
|
#
|
||||||
class fluentd::repo {
|
class fluentd::repo inherits fluentd {
|
||||||
case $::osfamily {
|
if $manage_repo {
|
||||||
'Debian': {
|
case $::osfamily {
|
||||||
include ::fluentd::repo::apt
|
'Debian': {
|
||||||
}
|
include ::fluentd::repo::apt
|
||||||
default: {
|
}
|
||||||
fail("No repo available for ${::osfamily}/${::operatingsystem}")
|
default: {
|
||||||
|
fail("No repo available for ${::osfamily}/${::operatingsystem}")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user