summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/post-install-functions.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh
index 75207ba2..912a2a11 100755
--- a/lib/post-install-functions.sh
+++ b/lib/post-install-functions.sh
@@ -64,6 +64,14 @@ EOI
done
fi
+ # TODO fix this when HA SDN controllers are supported
+ if [ "${deploy_options_array['sdn_controller']}" != 'False' ]; then
+ echo -e "${blue}INFO: Finding SDN Controller IP for overcloudrc...${reset}"
+ sdn_controller_ip=$(overcloud_connect controller0 "facter ipaddress_br_ex")
+ echo -e "${blue}INFO: SDN Controller IP is ${sdn_controller_ip} ${reset}"
+ undercloud_connect stack "echo 'export SDN_CONTROLLER_IP=${sdn_controller_ip}' >> /home/stack/overcloudrc"
+ fi
+
ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
source overcloudrc
set -o errexit
@@ -91,6 +99,7 @@ if [ "${deploy_options_array['congress']}" == 'True' ]; then
--config password=\$OS_PASSWORD \\
--config auth_url=\$OS_AUTH_URL
done
+ openstack congress datasource create doctor "doctor"
fi
EOI