puppet-ironic/manifests/inspector/coordination.pp
Takashi Kajinami 7df48f2053 Refactor resource dependencies
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: I789537557b60d9a408cec9fde65ac9ddc1cb743b
2024-04-08 13:07:15 +09:00

25 lines
646 B
Puppet

# == Class: ironic::inspector::coordination
#
# Setup and configure ironic-inspector coordination settings.
#
# === Parameters
#
# [*backend_url*]
# (Optional) Coordination backend URL.
# Defaults to $facts['os_service_default']
#
class ironic::inspector::coordination (
$backend_url = $facts['os_service_default'],
) {
include ironic::deps
oslo::coordination{ 'ironic_inspector_config':
backend_url => $backend_url,
}
# all coordination settings should be applied and all packages should be
# installed before service startup
Oslo::Coordination['ironic_inspector_config'] -> Anchor['ironic-inspector::service::begin']
}