mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-29 21:10:20 +08:00
Since we no longer have any machines in phx2, I have tried to remove them from ansible. Note that there are still some places where we need to remove them still: nagios, dhcp, named were not touched, and in cases where it wasn't pretty clear what a conditional was doing I left it to be cleaned up later. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
34 lines
875 B
Django/Jinja
34 lines
875 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 %}
|
|
{% elif 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={
|
|
"bugzilla2fedmsg.bugzilla2fedmsg01": [
|
|
"tcp://bugzilla2fedmsg01.%s:3000" % suffix,
|
|
"tcp://bugzilla2fedmsg01.%s:3001" % suffix,
|
|
"tcp://bugzilla2fedmsg01.%s:3002" % suffix,
|
|
"tcp://bugzilla2fedmsg01.%s:3003" % suffix,
|
|
],
|
|
},
|
|
)
|