From d044e10afc2e8f605a775c62d868cc767a497efd Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Mon, 17 Oct 2022 17:15:02 +0200 Subject: [PATCH] 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 --- packstack/puppet/modules/packstack/manifests/gnocchi.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/packstack/puppet/modules/packstack/manifests/gnocchi.pp b/packstack/puppet/modules/packstack/manifests/gnocchi.pp index 4bf3f4518..26575159a 100644 --- a/packstack/puppet/modules/packstack/manifests/gnocchi.pp +++ b/packstack/puppet/modules/packstack/manifests/gnocchi.pp @@ -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 = '' }