a5fb242e23
This refactors resource dependencies to improve the following points. - Avoid unnecessary dependencies across services. For example aodh service does not require cinder db. - Restart only api service when config files like paste.ini, which are used only be api service is changed. Change-Id: I3953eea75f00c44363870c318f960b7299c65e7c
25 lines
583 B
Puppet
25 lines
583 B
Puppet
# == Class: cinder::coordination
|
|
#
|
|
# Setup and configure Cinder coordination settings.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*backend_url*]
|
|
# (Optional) Coordination backend URL.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
class cinder::coordination (
|
|
$backend_url = $facts['os_service_default'],
|
|
) {
|
|
|
|
include cinder::deps
|
|
|
|
oslo::coordination{ 'cinder_config':
|
|
backend_url => $backend_url
|
|
}
|
|
|
|
# all coordination settings should be applied and all packages should be
|
|
# installed before service startup
|
|
Oslo::Coordination['cinder_config'] -> Anchor['cinder::service::begin']
|
|
}
|