Fix autocloud endpoints
This commit is contained in:
parent
5d8ce8db4e
commit
a5d383a5a9
1 changed files with 11 additions and 12 deletions
|
@ -1,18 +1,17 @@
|
|||
{% if env == 'staging' %}
|
||||
suffix = 'stg.phx2.fedoraproject.org'
|
||||
machines = ['autocloud-backend01', 'autocloud-backend02']
|
||||
{% else %}
|
||||
suffix = 'phx2.fedoraproject.org'
|
||||
machines = ['autocloud-backend-libvirt', 'autocloud-backend-vbox']
|
||||
{% endif %}
|
||||
|
||||
config = dict(
|
||||
endpoints={
|
||||
"autocloud.autocloud-backend01": [
|
||||
"tcp://autocloud-backend01.%s:30%0.2i" % (suffix, i)
|
||||
for i in range(4)
|
||||
],
|
||||
"autocloud.autocloud-backend02": [
|
||||
"tcp://autocloud-backend02.%s:30%0.2i" % (suffix, i)
|
||||
for i in range(4)
|
||||
],
|
||||
},
|
||||
)
|
||||
endpoints = {}
|
||||
for machine in machines:
|
||||
endpoint = [
|
||||
"tcp://%s.%s:30%0.2i" % (machine, suffix, i)
|
||||
for i in range(4)
|
||||
]
|
||||
endpoints['autocloud.%s' % machine] = endpoint
|
||||
|
||||
config = dict(endpoints=endpoints)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue