Update for 2 regions with network timeout issue
diff --git a/templates/apigee-provision.conf.j2 b/templates/apigee-provision.conf.j2
index b46fd8a..7854d3c 100644
--- a/templates/apigee-provision.conf.j2
+++ b/templates/apigee-provision.conf.j2
@@ -38,6 +38,9 @@
VHOST_NAME={{ virtual_host_name }}
# If you have a DNS entry for the virtual host.
+{% if load_balancer is defined and load_balancer | trim | length > 0 %}
+VHOST_ALIAS="{{ vhost_alias }}"
+{% else %}
{% if groups['dc-3'] is defined and inventory_hostname in groups['dc-3'] %}
VHOST_ALIAS="{{ groups['dc-3-rmp'] | join(' ') }}"
{% elif groups['dc-2'] is defined and inventory_hostname in groups['dc-2'] %}
@@ -45,6 +48,7 @@
{% else %}
VHOST_ALIAS="{{ groups['dc-1-rmp'] | join(' ') }}"
{% endif %}
+{% endif %}
# If you do not have a DNS entry for the virtual host,
# specify the IP and port of each router as a space-separated list: