From 7ad62ce6c0e65117324123b501b72d465a874030 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Fri, 16 Aug 2019 18:47:40 +0800 Subject: [PATCH] message-tagging-service: fix fedmsg config Set proper relay_inbound address in order to publish messages. Signed-off-by: Chenxiong Qi --- .../templates/configmap.yml | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/roles/openshift-apps/message-tagging-service/templates/configmap.yml b/roles/openshift-apps/message-tagging-service/templates/configmap.yml index 89f255af8a..77cb22a2bc 100644 --- a/roles/openshift-apps/message-tagging-service/templates/configmap.yml +++ b/roles/openshift-apps/message-tagging-service/templates/configmap.yml @@ -58,18 +58,24 @@ data: 'mts-consumer': True, 'validate_signatures': False, 'active': True, - 'environment': {% if env == 'staging' %}'stg'{% else %}'prod'{% endif %}, + + {% if env == 'staging' %} + + 'environment': 'stg', 'endpoints': { - 'fedora-infrastructure': [ - {% if env == 'staging' %} - 'tcp://stg.fedoraproject.org:9940', - {% else %} - 'tcp://hub.fedoraproject.org:9940', - {% endif %} - ], - 'relay_outbound': ["tcp://127.0.0.1:4001"], + 'fedora-infrastructure': ['tcp://stg.fedoraproject.org:9940'], }, - 'relay_inbound': ["tcp://127.0.0.1:2003"], + 'relay_inbound': ['tcp://busgateway01.stg.phx2.fedoraproject.org:9941'], + + {% else %} + + 'environment': 'prod', + 'endpoints': { + 'fedora-infrastructure': ['tcp://hub.fedoraproject.org:9940'], + }, + 'relay_inbound': ['tcp://busgateway01.phx2.fedoraproject.org:9941'], + + {% endif %} } logging.py: |- config = dict(logging={