mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
changed class calls in init.pp
this is needed to be able to test classes independently. All these sub classes inherit from the base class (::fluentd). If you call these classes directly you will get a duplicated declaration error.
This commit is contained in:
parent
3c10ce7aac
commit
6fb278603b
@ -67,9 +67,16 @@ class fluentd (
|
|||||||
fail('service_ensure parameter must be running or stopped')
|
fail('service_ensure parameter must be running or stopped')
|
||||||
}
|
}
|
||||||
|
|
||||||
class { '::fluentd::repo': } ->
|
# class calls
|
||||||
class { '::fluentd::install': } ->
|
include '::fluentd::repo'
|
||||||
class { '::fluentd::config': } ->
|
include '::fluentd::install'
|
||||||
class { '::fluentd::service': }
|
include '::fluentd::config'
|
||||||
|
include '::fluentd::service'
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
Class['::Fluentd::Repo'] ->
|
||||||
|
Class['::Fluentd::Install'] ->
|
||||||
|
Class['::Fluentd::Config'] ->
|
||||||
|
Class['::Fluentd::Service']
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user