Fix prometheus-proxy service name in Red Hat-based distros

The prometheus-proxy service is called octavia-prometheus-proxy in RDO's
RPMs [0].
Add a svc-map for the service name to fix the amphora-agent element for
these distros.

[0] https://review.rdoproject.org/r/c/openstack/octavia-distgit/+/44152

Partial-Bug: 1992668

Change-Id: Ie739cd582103d1aab3021c56654e395b5919358f
This commit is contained in:
Gregory Thiemonge 2022-10-13 09:46:11 +02:00
parent 95adbbe618
commit 344d6d76ce
2 changed files with 4 additions and 1 deletions

View File

@ -8,5 +8,5 @@ set -eu
set -o pipefail
if [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
systemctl enable prometheus-proxy
systemctl enable $(svc-map prometheus-proxy)
fi

View File

@ -1,3 +1,6 @@
amphora-agent:
default: amphora-agent
redhat: octavia-amphora-agent
prometheus-proxy:
default: prometheus-proxy
redhat: octavia-prometheus-proxy