Added baas installation
diff --git a/templates/baas-silent-install.conf.j2 b/templates/baas-silent-install.conf.j2 index 148ff4b..6973e1b 100644 --- a/templates/baas-silent-install.conf.j2 +++ b/templates/baas-silent-install.conf.j2
@@ -1,5 +1,5 @@ # Must resolve to IP address or DNS name of host - not to 127.0.0.1 or localhost. -HOSTIP={{ hostvars[inventory_hostname]['private_address'] }} +HOSTIP="$(hostname -i)" # Define the API BaaS administrator account. # User name - default is "superuser". @@ -61,7 +61,7 @@ {% if baas_load_balancer_host is defined and baas_load_balancer_host and baas_load_balancer_port is defined and baas_load_balancer_port %} BAAS_USERGRID_URL="http://{{ baas_load_balancer_host }}:{{ baas_load_balancer_port }}" {% elif groups['portal'][0] is defined and groups['baas'][0] and baas_portal_port is defined and baas_portal_port %} -BAAS_USERGRID_URL="http://{{ groups['baas'][0]['private_address'] }}:{{ baas_load_balancer_port }}" +BAAS_USERGRID_URL="http://{{ groups['baas'][0][private_address'] }}:{{ baas_load_balancer_port }}" {% endif %} # API BaaS Portal information.