ansible/roles/fedmsg/base/templates/endpoints-fedocal.py.j2

21 lines
453 B
Text
Raw Normal View History

2014-01-28 18:51:52 +00:00
{% if env == 'staging' %}
suffix = 'stg.phx2.fedoraproject.org'
{% else %}
suffix = 'phx2.fedoraproject.org'
{% endif %}
config = dict(
endpoints={
"fedocal.fedocal01": [
"tcp://fedocal01.%s:30%02i" % (suffix, i)
for i in range(2)
],
{% if env != 'staging' %}
"fedocal.fedocal02": [
"tcp://fedocal02.%s:30%02i" % (suffix, i)
for i in range(2)
],
{% endif %}
},
)