834d9a6780
Ceilometer no longer requires its own database since metric/event
storage was offloaded to Gnocchi/Panko. These implementations were
formally deprecated during the previous cycle[1] so can be removed.
This also updates the outdated example manifests to adapt to
the removal and the recent refactoring.
[1] 60882c29df
Change-Id: Id18b9221703eda9311b81c5a5dfdd41cc68f5424
52 lines
2.1 KiB
Puppet
52 lines
2.1 KiB
Puppet
# == Class: ceilometer::deps
|
|
#
|
|
# Ceilometer anchors and dependency management
|
|
#
|
|
class ceilometer::deps {
|
|
|
|
assert_private()
|
|
|
|
# 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 { 'ceilometer::install::begin': }
|
|
-> Package<| tag == 'ceilometer-package'|>
|
|
~> anchor { 'ceilometer::install::end': }
|
|
-> anchor { 'ceilometer::config::begin': }
|
|
-> Ceilometer_config<||>
|
|
~> anchor { 'ceilometer::config::end': }
|
|
-> anchor { 'ceilometer::db::begin': }
|
|
-> anchor { 'ceilometer::db::end': }
|
|
~> anchor { 'ceilometer::dbsync::begin': }
|
|
-> anchor { 'ceilometer::dbsync::end': }
|
|
~> anchor { 'ceilometer::service::begin': }
|
|
~> Service<| tag == 'ceilometer-service' |>
|
|
~> anchor { 'ceilometer::service::end': }
|
|
|
|
# all cache settings should be applied and all packages should be installed
|
|
# before service startup
|
|
Oslo::Cache<||> -> Anchor['ceilometer::service::begin']
|
|
|
|
# all coordination settings should be applied and all packages should be
|
|
# installed before service startup
|
|
Oslo::Coordination<||> -> Anchor['ceilometer::service::begin']
|
|
|
|
# rootwrap config should occur in the config block also.
|
|
Anchor['ceilometer::config::begin']
|
|
-> Ceilometer_rootwrap_config<||>
|
|
~> Anchor['ceilometer::config::end']
|
|
|
|
# Ensure files are modified in the config block
|
|
Anchor['ceilometer::config::begin']
|
|
-> File<| tag == 'ceilometer-yamls' |>
|
|
~> Anchor['ceilometer::config::end']
|
|
|
|
# Installation or config changes will always restart services.
|
|
Anchor['ceilometer::install::end'] ~> Anchor['ceilometer::service::begin']
|
|
Anchor['ceilometer::config::end'] ~> Anchor['ceilometer::service::begin']
|
|
}
|