diff --git a/roles/bodhi2/base/templates/configmap.yml b/roles/bodhi2/base/templates/configmap.yml index 57a0582d8e..1d3b269895 100644 --- a/roles/bodhi2/base/templates/configmap.yml +++ b/roles/bodhi2/base/templates/configmap.yml @@ -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