diff options
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/installer-docker.sh-template | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstrap/installer-docker.sh-template b/bootstrap/installer-docker.sh-template index 34b30c8..867dc1a 100755 --- a/bootstrap/installer-docker.sh-template +++ b/bootstrap/installer-docker.sh-template @@ -52,6 +52,11 @@ LOCATIONID=$(printenv LOCATION) SSHOPTS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" STARTDIR=$(pwd) +# clear out files for writing out floating IP addresses +rm -f "$STARTDIR"/config/runtime.ip.consul +rm -f "$STARTDIR"/config/runtime.ip.cm + + SSHUSER=centos PVTKEY=./config/key INPUTS=./config/inputs.yaml @@ -410,6 +415,11 @@ echo "CDAP cluster registered" cfy install -p ./blueprints/cdapbroker/${CDAPBROKERBP} -b cdapbroker -d cdapbroker -i "location_id=${LOCATION}" +# write out IP addresses +echo "$CONSULIP" > "$STARTDIR"/config/runtime.ip.consul +echo "$PUBIP" > "$STARTDIR"/config/runtime.ip.cm + + # Keep the container up rm -f /tmp/ready_to_exit while [ ! -e /tmp/ready_to_exit ] |