ansible/roles/bodhi2/base/templates/masher.py
Kevin Fenzi ca88391df3 More bodhi2 for fedora24 changes.
Fix places that except bodhi-backend01 for 03
Don't use the copr we can just use a scratch build
Set fedmsg enpoints
2016-08-12 19:36:37 +00:00

17 lines
518 B
Python

{% if env == 'staging' %}
suffix = 'stg.phx2.fedoraproject.org'
{% else %}
suffix = 'phx2.fedoraproject.org'
{% endif %}
config = dict(
# Note, the masher runs on bodhi-backend01, while other consumers will run
# on bodhi-backend02.
masher={{bodhi_masher_enabled}},
masher_topic='bodhi.masher.start',
{% if ansible_hostname == 'bodhi-backend01' %}
releng_fedmsg_certname='shell-bodhi-backend01.%s' % suffix,
{% else %}
releng_fedmsg_certname='shell-bodhi-backend03.%s' % suffix,
{% endif %}
)