Add endpoint-elections creating the corresponding endpoints for fedmsg
This commit is contained in:
parent
5090896d2a
commit
c71811ac96
2 changed files with 21 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
|||
- ssl.py
|
||||
- endpoints.py
|
||||
- endpoints-fedocal.py
|
||||
- endpoints-elections.py
|
||||
- endpoints-fedbadges.py
|
||||
- endpoints-fmn-web.py
|
||||
- endpoints-nuancier.py
|
||||
|
|
20
roles/fedmsg/base/templates/endpoints-elections.py.j2
Normal file
20
roles/fedmsg/base/templates/endpoints-elections.py.j2
Normal 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 %}
|
||||
},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue