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' %}
|
{% if env == 'staging' %}
|
||||||
suffix = 'stg.phx2.fedoraproject.org'
|
suffix = 'stg.phx2.fedoraproject.org'
|
||||||
|
machines = ['autocloud-backend01', 'autocloud-backend02']
|
||||||
{% else %}
|
{% else %}
|
||||||
suffix = 'phx2.fedoraproject.org'
|
suffix = 'phx2.fedoraproject.org'
|
||||||
|
machines = ['autocloud-backend-libvirt', 'autocloud-backend-vbox']
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
config = dict(
|
endpoints = {}
|
||||||
endpoints={
|
for machine in machines:
|
||||||
"autocloud.autocloud-backend01": [
|
endpoint = [
|
||||||
"tcp://autocloud-backend01.%s:30%0.2i" % (suffix, i)
|
"tcp://%s.%s:30%0.2i" % (machine, suffix, i)
|
||||||
for i in range(4)
|
for i in range(4)
|
||||||
],
|
]
|
||||||
"autocloud.autocloud-backend02": [
|
endpoints['autocloud.%s' % machine] = endpoint
|
||||||
"tcp://autocloud-backend02.%s:30%0.2i" % (suffix, i)
|
|
||||||
for i in range(4)
|
config = dict(endpoints=endpoints)
|
||||||
],
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue