ff430e9f6a
All db settings should be applied and all releated packages should be installed before dbsync starts. Change-Id: I342409a7a6af9d340457cf57db2a13d41029a60e
45 lines
1.8 KiB
Puppet
45 lines
1.8 KiB
Puppet
# == Class: barbican::deps
|
|
#
|
|
# Barbican anchors and dependency management
|
|
#
|
|
class barbican::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 { 'barbican::install::begin': }
|
|
-> Package<| tag == 'barbican-package'|>
|
|
~> anchor { 'barbican::install::end': }
|
|
-> anchor { 'barbican::config::begin': }
|
|
-> Barbican_config<||>
|
|
~> anchor { 'barbican::config::end': }
|
|
-> anchor { 'barbican::db::begin': }
|
|
-> anchor { 'barbican::db::end': }
|
|
~> anchor { 'barbican::dbsync::begin': }
|
|
-> anchor { 'barbican::dbsync::end': }
|
|
~> anchor { 'barbican::service::begin': }
|
|
~> Service<| tag == 'barbican-service' |>
|
|
~> anchor { 'barbican::service::end': }
|
|
|
|
# all db settings should be applied and all packages should be installed
|
|
# before dbsync starts
|
|
Oslo::Db<||> -> Anchor['barbican::dbsync::begin']
|
|
|
|
# policy config should occur in the config block also.
|
|
Anchor['barbican::config::begin']
|
|
-> Openstacklib::Policy::Base<||>
|
|
~> Anchor['barbican::config::end']
|
|
|
|
# Ensure files are modified in the config block
|
|
Anchor['barbican::config::begin']
|
|
-> File_line<| tag == 'modify-bind-port' |>
|
|
~> Anchor['barbican::config::end']
|
|
|
|
# Installation or config changes will always restart services.
|
|
Anchor['barbican::install::end'] ~> Anchor['barbican::service::begin']
|
|
Anchor['barbican::config::end'] ~> Anchor['barbican::service::begin']
|
|
}
|