@@ -70,10 +70,8 @@ function create_metadata_json() {
7070 "heat_outputs_path": "$heat_outputs_path ",
7171 "ssh_user": "$ssh_user ",
7272 "deployment_type": "$deployment_type ",
73- "skip_dns": $( [ " $skip_dns " == " True" ] && echo true || echo false) ,
7473 "lb_ip": "$lb_ip ",
7574 "dns_forwarders": "$dns_forwarders ",
76- "dns_ip": "$dns_ip ",
7775 "ldap_url": "$ldap_url ",
7876 "ldap_bind_dn": "$ldap_bind_dn ",
7977 "ldap_bind_password": "$ldap_bind_password ",
@@ -136,22 +134,6 @@ function is_scaleup() {
136134 grep -v ' .*-node' ) && return 1 || return 0
137135}
138136
139- function update_etc_hosts() {
140- # $1 - IP
141- # $2 - hostname
142- grep -q " $2 " /etc/hosts || echo " $1 $2 " >> /etc/hosts
143- }
144-
145- if [ " $lb_type " == " external" ]; then
146- # for external loadbalancer override LB's IP to point to the first master
147- # node (because the LB can not be pre-set and working). This is done
148- # only for the initial run, for next scale up/down it's expected
149- # that the LB is already set.
150- [ -e ${ANSDIR} .deployed ] || update_etc_hosts " $master_ip " " $lb_hostname "
151- else
152- update_etc_hosts " $lb_ip " " $lb_hostname "
153- fi
154-
155137[ " $prepare_ansible " == " False" ] && exit 0
156138
157139mkdir -p /var/lib/ansible/group_vars
0 commit comments