Add endpoint-elections creating the corresponding endpoints for fedmsg

This commit is contained in:
Pierre-Yves Chibon 2014-06-16 17:17:18 +02:00
parent 5090896d2a
commit c71811ac96
2 changed files with 21 additions and 0 deletions

View file

@ -34,6 +34,7 @@
- ssl.py
- endpoints.py
- endpoints-fedocal.py
- endpoints-elections.py
- endpoints-fedbadges.py
- endpoints-fmn-web.py
- endpoints-nuancier.py

View file

@ -0,0 +1,20 @@
{% if env == 'staging' %}
suffix = 'stg.phx2.fedoraproject.org'
{% else %}
suffix = 'phx2.fedoraproject.org'
{% endif %}
config = dict(
endpoints={
"fedora_elections.elections01": [
"tcp://elections01.%s:30%02i" % (suffix, i)
for i in range(2)
],
{% if env != 'staging' %}
"fedora_elections.elections02": [
"tcp://elections02.%s:30%02i" % (suffix, i)
for i in range(2)
],
{% endif %}
},
)