ansible/roles/fedmsg/base/templates/endpoints-fedocal.py.j2
Nils Philippsen 80f0769e0f Remove no-op template blocks
Renaming PHX2 -> IAD2 with existing IAD2 conditional template blocks
left some in the form...:

{% if datacenter == 'iad2' %}
...
{% elif datacenter == 'iad2' %}
...

...making the second block a no-op. Remove them.

Follow up to commit 7984b46eb7

Signed-off-by: Nils Philippsen <nils@redhat.com>
2020-07-15 15:29:20 +00:00

30 lines
692 B
Django/Jinja

{% if datacenter == 'iad2' %}
{% if env == 'staging' %}
suffix = 'stg.iad2.fedoraproject.org'
{% else %}
suffix = 'iad2.fedoraproject.org'
vpn_suffix = 'vpn.fedoraproject.org'
{% endif %}
{% else %}
{% if env == 'staging' %}
suffix = 'stg.fedoraproject.org'
{% else %}
suffix = 'fedoraproject.org'
vpn_suffix = 'vpn.fedoraproject.org'
{% endif %}
{% 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 %}
},
)