37180fcf62
Watcher uses oslo.cache for caching for overload standard deviation strategy[1]. This change introduces support for parameters of that library. [1] 9d3671af371fc2b686fc08a1c1710fbe314121d5 Change-Id: I43ec3b4f1991661fc457cc0312bf8d6d587ee4c9
43 lines
1.4 KiB
Puppet
43 lines
1.4 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<||>
|
|
~> Anchor['watcher::config::end']
|
|
|
|
# all cache settings should be applied and all packages should be installed
|
|
# before service startup
|
|
Oslo::Cache<||> -> Anchor['watcher::service::begin']
|
|
|
|
# all db settings should be applied and all packages should be installed
|
|
# before dbsync starts
|
|
Oslo::Db<||> -> Anchor['watcher::db::create_schema::begin']
|
|
|
|
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'],
|
|
}
|
|
}
|