From deb5a143cd88f64e881e006b14c307bcf42758bf Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Tue, 2 Jul 2024 09:54:29 +0200 Subject: [PATCH] [mailman3] Fix the fedora-messaging config The fedora-messaging archiver config missed some required values. Let's fix that. Signed-off-by: Michal Konecny --- roles/mailman3/templates/fedmsg-plugin.toml.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/mailman3/templates/fedmsg-plugin.toml.j2 b/roles/mailman3/templates/fedmsg-plugin.toml.j2 index af1c6d59a0..0f441f4480 100644 --- a/roles/mailman3/templates/fedmsg-plugin.toml.j2 +++ b/roles/mailman3/templates/fedmsg-plugin.toml.j2 @@ -1,8 +1,12 @@ # A sample configuration for fedora-messaging. This file is in the TOML format. -amqp_url = "amqp://" +amqp_url = "amqps://mailman{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Fpubsub" passive_declares = false publish_exchange = "amq.topic" -topic_prefix = "" +{% if env == "staging" %} +topic_prefix = "org.fedoraproject.stg" +{% else %} +topic_prefix = "io.fedoraproject.prod" +{% endif %} [tls] ca_cert = "/etc/pki/rabbitmq/mailman/mailman3-fedmsg-plugin.ca"