
The oslo.policy library has implementations to detect change in policy rules and reload the new rules without service restart. Change-Id: Ib83054cac36ea323b63981793b222bce4fad5087
43 lines
1.5 KiB
Puppet
43 lines
1.5 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<| tag == 'watcher' |>
|
|
-> 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'],
|
|
}
|
|
}
|