Start redis before gnocchi-metricd when coordination uses redis

After [1] we need to make sure that redis is running before
gnocchi-metricd is started as it requires it up when doing any
operation.

[1] https://review.opendev.org/c/x/packstack/+/840314

Change-Id: I98b1f86c184a3a87b2d2dfd29059ec9f1cec8f8a
This commit is contained in:
Alfredo Moralejo 2022-10-17 17:15:02 +02:00
parent 56534af6a0
commit d044e10afc
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +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' |>
} else {
$coordination_url = ''
}