Files
puppet-designate/manifests/deps.pp
Takashi Kajinami 9c02c056bc Do not restart services after policy file changes
The oslo.policy library has implementations to detect change in policy
rules and reload the new rules without service restart.

Change-Id: Ib4e93bcf7f25f31c0675c0aad584ae4c59f59c73
2023-09-11 12:27:05 +09:00

50 lines
2.0 KiB
Puppet

# == Class: designate::deps
#
# Designate anchors and dependency management
#
class designate::deps {
# Setup anchors for install, config and service phases of the module. These
# anchors allow external modules to hook the begin and end of any of these
# phases. Package or service management can also be replaced by ensuring the
# package is absent or turning off service management and having the
# replacement depend on the appropriate anchors. When applicable, end tags
# should be notified so that subscribers can determine if installation,
# config or service state changed and act on that if needed.
anchor { 'designate::install::begin': }
-> Package<| tag == 'designate-package'|>
~> anchor { 'designate::install::end': }
-> anchor { 'designate::config::begin': }
-> Designate_config<||>
~> anchor { 'designate::config::end': }
-> anchor { 'designate::db::begin': }
-> anchor { 'designate::db::end': }
~> anchor { 'designate::dbsync::begin': }
-> anchor { 'designate::dbsync::end': }
~> anchor { 'designate::service::begin': }
~> Service<| tag == 'designate-service' |>
~> anchor { 'designate::service::end': }
# all coordination settings should be applied and all packages should be
# installed before service startup
Oslo::Coordination<||> -> Anchor['designate::service::begin']
# paste-api.ini config should occur in the config block also.
Anchor['designate::config::begin']
-> Designate_api_paste_ini<||>
~> Anchor['designate::config::end']
# policy config should occur in the config block also.
Anchor['designate::config::begin']
-> Openstacklib::Policy<| tag == 'designate' |>
-> Anchor['designate::config::end']
# On any uwsgi config change, we must restart Designate APIs.
Anchor['designate::config::begin']
-> Designate_api_uwsgi_config<||>
~> Anchor['designate::config::end']
# Installation or config changes will always restart services.
Anchor['designate::install::end'] ~> Anchor['designate::service::begin']
Anchor['designate::config::end'] ~> Anchor['designate::service::begin']
}