From 0509e5ffc5a50a0793f90479e448683a8447d0bb Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Tue, 14 May 2019 20:41:09 +0000 Subject: [PATCH] bodhi: Only backend01 should get the composer.start message. Signed-off-by: Randy Barlow --- roles/bodhi2/base/templates/fedora-messaging.toml.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/bodhi2/base/templates/fedora-messaging.toml.j2 b/roles/bodhi2/base/templates/fedora-messaging.toml.j2 index 7c1c78cf46..8e39425875 100644 --- a/roles/bodhi2/base/templates/fedora-messaging.toml.j2 +++ b/roles/bodhi2/base/templates/fedora-messaging.toml.j2 @@ -42,7 +42,10 @@ queue = "bodhi{{ env_suffix }}" exchange = "amq.topic" routing_keys = [ {% for key in bodhi_message_routing_keys %} + {# Only bodhi-backend01 should get the composer start messages #} + {% if 'bodhi.composer.start' not in key or inventory_hostname.startswith('bodhi-backend01') %} "{{ key }}", + {% endif %} {% endfor %} ]