Fix dependency between redis and gnocchi services

This is follow-up of d044e10afc and is
an attempt to fix the dependency between redis and gnocchi services.

- Use title for resource collector according to the definition in
  puppet-redis. We might want to use the public API such as the redis
  class itself but it makes it difficult to handle the deployment with
  redis and gnocchi running in different nodes.

- Make all gnocchi services dependent on redis.

Change-Id: I70f5ab186b5635b364648f4e4ffb11ba5d328f4c
This commit is contained in:
Takashi Kajinami 2022-10-18 22:07:19 +09:00
parent d044e10afc
commit faf5329941
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class packstack::gnocchi ()
$redis_host = hiera('CONFIG_REDIS_HOST_URL')
$redis_port = hiera('CONFIG_REDIS_PORT')
$coordination_url = "redis://${redis_host}:${redis_port}"
Service<| name == 'redis' |> -> Service<| name == 'gnocchi-metricd' |>
Service<| title == 'redis' |> -> Anchor['gnocchi::service::begin']
} else {
$coordination_url = ''
}