diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 323f6bc20d..6dc88b7cd1 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -358,7 +358,7 @@ backend oci-candidate-registry-backend balance hdr(appserver) server oci-candidate-registry01 oci-candidate-registry01:5000 check inter 10s rise 1 fall 2 -{% if 'phx2' in inventory_hostname %} +{% if 'phx2' in inventory_hostname or 'iad2' in inventory_hostname %} # Only enable this on phx2 proxies frontend src-frontend @@ -386,15 +386,15 @@ backend ipa01-backend server ipa01 ipa01:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem option httpchk GET /ipa/ui/ -{% if env == "production" and 'phx2' in inventory_hostname %} +{% if env == "production" and 'phx2' in inventory_hostname or 'iad2' in inventory_hostname %} frontend kojipkgs-frontend bind 0.0.0.0:10062 default_backend kojipkgs-backend backend kojipkgs-backend balance uri - server kojipkgs01.phx2.fedoraproject.org kojipkgs01.phx2.fedoraproject.org:80 check inter 10s rise 1 fall 2 - server kojipkgs02.phx2.fedoraproject.org kojipkgs02.phx2.fedoraproject.org:80 check inter 10s rise 1 fall 2 + server kojipkgs01.{{ datacenter }}.fedoraproject.org kojipkgs01.{{ datacenter }}.fedoraproject.org:80 check inter 10s rise 1 fall 2 + server kojipkgs02.{{ datacenter }}.fedoraproject.org kojipkgs02.{{ datacenter }}.fedoraproject.org:80 check inter 10s rise 1 fall 2 option httpchk GET / {% endif %} @@ -430,7 +430,7 @@ backend copr-backend option httpchk GET /api_3/ {% endif %} -{% if datacenter == "phx2" %} +{% if datacenter == "phx2" or datacenter == "iad2" %} # These ports are for proxying rabbitmq (AMQP) protocol through. # At this moment, internal- and public-rabbitmq both point to the exact same set of # brokers on the backend, but the internal- is intended for applications we directly control.