diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index d90db19b14..56af90b0f1 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -37,7 +37,7 @@ backend stats-backend stats enable stats uri / -{% if env == "production" %} +{% if env == "production" and 'iad2' in inventory_hostname %} frontend ocp-masters-kapi mode tcp bind 0.0.0.0:6443 @@ -65,7 +65,7 @@ backend ocp-masters-backend-machineconfig server bootstrap.ocp.iad2.fedoraproject.org bootstrap.ocp.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check {% endif %} -{% if env != "production" %} +{% if env != "production" and 'iad2' in inventory_hostname %} frontend ocp-masters-kapi mode tcp bind 0.0.0.0:6443