8aee1f413f
1) Add deps to all that is needed. 2) Fix hooks for external install & svc management. 3) Update releated spec tests. Change-Id: Id3e0594631579c316c721dd53b0579808571ee95
35 lines
1.1 KiB
Puppet
35 lines
1.1 KiB
Puppet
# == Class: watcher::deps
|
|
#
|
|
# watcher anchors and dependency management
|
|
#
|
|
class watcher::deps {
|
|
anchor { 'watcher::install::begin': }
|
|
-> Package<| tag == 'watcher-package'|>
|
|
~> anchor { 'watcher::install::end': }
|
|
-> anchor { 'watcher::config::begin': }
|
|
-> Watcher_config<||>
|
|
~> anchor { 'watcher::config::end': }
|
|
~> anchor { 'watcher::db::begin': }
|
|
~> anchor { 'watcher::db::end': }
|
|
~> anchor { 'watcher::db::create_schema::begin': }
|
|
~> anchor { 'watcher::db::create_schema::end': }
|
|
~> anchor { 'watcher::db::upgrade::begin': }
|
|
~> anchor { 'watcher::db::upgrade::end': }
|
|
~> anchor { 'watcher::service::begin': }
|
|
~> Service<| tag == 'watcher-service' |>
|
|
~> anchor { 'watcher::service::end': }
|
|
|
|
# policy config should occur in the config block also.
|
|
Anchor['watcher::config::begin']
|
|
-> Openstacklib::Policy::Base<||>
|
|
~> Anchor['watcher::config::end']
|
|
|
|
Anchor['watcher::install::end'] ~> Anchor['watcher::service::begin']
|
|
Anchor['watcher::config::end'] ~> Anchor['watcher::service::begin']
|
|
|
|
anchor { 'watcher-start':
|
|
require => Anchor['watcher::install::end'],
|
|
before => Anchor['watcher::config::begin'],
|
|
}
|
|
}
|