From 394b92cb1981cd251fded74d157b6ee1635fc5ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= <aurelien@bompard.org>
Date: Tue, 1 Apr 2025 11:47:30 +0200
Subject: [PATCH] simplify the config file using a variable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
---
 roles/ipa/server/templates/fedora-messaging.conf.j2 | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/roles/ipa/server/templates/fedora-messaging.conf.j2 b/roles/ipa/server/templates/fedora-messaging.conf.j2
index 0f57582d7e..896e7d0bcd 100644
--- a/roles/ipa/server/templates/fedora-messaging.conf.j2
+++ b/roles/ipa/server/templates/fedora-messaging.conf.j2
@@ -5,11 +5,7 @@ amqp_url = "amqps://ipa{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.
 passive_declares = true
 
 # The topic_prefix configuration value will add a prefix to the topics of every sent message.
-{% if env == "staging" %}
-topic_prefix = "org.fedoraproject.stg"
-{% else %}
-topic_prefix = "org.fedoraproject.prod"
-{% endif %}
+topic_prefix = "org.fedoraproject.{{ env_short }}"
 
 
 # Authentication is TLS-based