Refactor resource dependencies

... to avoid unnecessary cross-service dependencies.

Change-Id: I428d52219c72cf48fdc3eb034d44092137608245
This commit is contained in:
Takashi Kajinami 2024-03-01 12:22:29 +09:00
parent 6aad879c33
commit 100c40e24e
3 changed files with 8 additions and 8 deletions

View File

@ -243,4 +243,8 @@ class ceilometer::cache (
hashclient_retry_delay => $hashclient_retry_delay,
dead_timeout => $dead_timeout,
}
# all cache settings should be applied and all packages should be installed
# before service startup
Oslo::Cache['ceilometer_config'] -> Anchor['ceilometer::service::begin']
}

View File

@ -17,4 +17,8 @@ class ceilometer::coordination (
oslo::coordination{ 'ceilometer_config':
backend_url => $backend_url
}
# all coordination settings should be applied and all packages should be
# installed before service startup
Oslo::Coordination['ceilometer_config'] -> Anchor['ceilometer::service::begin']
}

View File

@ -27,14 +27,6 @@ class ceilometer::deps {
~> 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<||>