From d1bbf7ee5a4024236603af6c45cc7208d3fd2f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 5 Dec 2022 15:08:59 +0100 Subject: [PATCH] FMN: add the topic prefix to the API FM sender MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- roles/openshift-apps/fmn/templates/api.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/openshift-apps/fmn/templates/api.toml b/roles/openshift-apps/fmn/templates/api.toml index 9832362b59..5e9edcd854 100644 --- a/roles/openshift-apps/fmn/templates/api.toml +++ b/roles/openshift-apps/fmn/templates/api.toml @@ -1,6 +1,14 @@ amqp_url = "amqps://fmn{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Fpubsub" passive_declares = true +# The topic_prefix configuration value will add a prefix to the topics of every sent message. +# This is used for migrating from fedmsg, and should not be used afterwards. +{% if env == "staging" %} +topic_prefix = "org.fedoraproject.stg" +{% else %} +topic_prefix = "org.fedoraproject.prod" +{% endif %} + [tls] ca_cert = "/etc/pki/fedora-messaging/ca/cacert.pem" certfile = "/etc/pki/fedora-messaging/crt/fmn-cert.pem"