Play nicely with the magic that bodhi adds on top of fedmsg magic

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-04-17 03:44:49 +02:00
parent e34e637b1e
commit bfe9021c09

View file

@ -19,12 +19,14 @@ metadata:
data:
bodhi-openshift-web.py: |-
import socket
hostname = socket.gethostname().split('.', 1)[0]
config = {
'sign_messages': True,
'active': True,
'cert_prefix': 'bodhi',
'certnames': {'bodhi.{}'.format(socket.gethostname()): 'bodhi'},
'relay_inbound': ['tcp://busgateway01{{ env_suffix }}.phx2.fedoraproject.org:9941'],
'bodhi.%s' % hostname: ['tcp://busgateway01.stg.phx2.fedoraproject.org:9941'],
{% if env == 'staging' %}
'environment': 'stg',
# stg should listen to the stg bus