puppet-ec2api/manifests/deps.pp
ZhongShengping 24e1e538d1 Update test-requirements.txt
This patch brings it in line with the latest global requirements.
By being in line with global requirements, this is a more accurate
list with respect to how things are actually tested in the gate.
The following links[0][1][2] show the latest reno, oslosphinx, sphinx
packages.

[0]https://github.com/openstack/requirements/blob/master/global-requirements.txt#L263
[1]https://github.com/openstack/requirements/blob/master/global-requirements.txt#L372
[2]https://github.com/openstack/requirements/blob/master/global-requirements.txt#L395

Change-Id: Id8155c6879599ce6b6440475c8fc6985374d9799
2017-03-23 14:41:42 +08:00

40 lines
1.6 KiB
Puppet

# == Class: ec2api::deps
#
# Ec2api anchors and dependency management
#
class ec2api::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 { 'ec2api::install::begin': }
-> Package<| tag == 'ec2api-package'|>
~> anchor { 'ec2api::install::end': }
-> anchor { 'ec2api::config::begin': }
-> Ec2api_config<||>
~> anchor { 'ec2api::config::end': }
-> anchor { 'ec2api::db::begin': }
-> anchor { 'ec2api::db::end': }
~> anchor { 'ec2api::dbsync::begin': }
-> anchor { 'ec2api::dbsync::end': }
~> anchor { 'ec2api::service::begin': }
~> Service<| tag == 'ec2api-service' |>
~> anchor { 'ec2api::service::end': }
# all db settings should be applied and all packages should be installed
# before dbsync starts
Oslo::Db<||> -> Anchor['ec2api::dbsync::begin']
# policy config should occur in the config block also.
Anchor['ec2api::config::begin']
-> Openstacklib::Policy::Base<||>
~> Anchor['ec2api::config::end']
# Installation or config changes will always restart services.
Anchor['ec2api::install::end'] ~> Anchor['ec2api::service::begin']
Anchor['ec2api::config::end'] ~> Anchor['ec2api::service::begin']
}