summaryrefslogtreecommitdiffstats
path: root/components/congress/joid/install_congress_3.sh
diff options
context:
space:
mode:
authorblsaws <bs3131@att.com>2016-02-17 15:32:07 -0800
committerblsaws <bs3131@att.com>2016-04-01 08:30:07 -0700
commit481e007a8ef5a4ffcd24d29a011c885b4955ab3f (patch)
tree25a36cfc9e5a8ead73b093ac20cdf8d341ef7097 /components/congress/joid/install_congress_3.sh
parent8c5d8a87f57405781810960d508d9ed7920e7ffb (diff)
Add return to force script close on exit.
Add "-x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" to ssh commands and remove "set -x" ("ssh -x" replaces it). JIRA: COPPER-2 Change-Id: Iad5048adc52c293b9d2ddadca14555d7831f4f11 Signed-off-by: blsaws <bs3131@att.com>
Diffstat (limited to 'components/congress/joid/install_congress_3.sh')
-rw-r--r--components/congress/joid/install_congress_3.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/congress/joid/install_congress_3.sh b/components/congress/joid/install_congress_3.sh
index 321633b..bf3b31e 100644
--- a/components/congress/joid/install_congress_3.sh
+++ b/components/congress/joid/install_congress_3.sh
@@ -23,10 +23,11 @@
# (copies install_congress_2.sh to node1-control and executes it)
# Edit install_congress_3.sh with the congress host address from lxc_info
# - Congress server IP address as discovered in lxc-info above
-# source ~/git/copper/components/congress/joid/install_congress_3.sh
+# source ~/git/copper/components/congress/joid/install_congress_3.sh
+ssh-keygen -f "/home/opnfv/.ssh/known_hosts" -R $1
cat <<EOF >~/env.sh
-export CONGRESS_HOST=192.168.10.132
+export CONGRESS_HOST=$1
export KEYSTONE_HOST=$(juju status --format=short | awk "/keystone\/0/ { print \$3 }")
export CEILOMETER_HOST=$(juju status --format=short | awk "/ceilometer\/0/ { print \$3 }")
export CINDER_HOST=$(juju status --format=short | awk "/cinder\/0/ { print \$3 }")
@@ -38,4 +39,5 @@ source ~/env.sh
juju scp ~/admin-openrc.sh ubuntu@$CONGRESS_HOST:/home/ubuntu
juju scp ~/env.sh ubuntu@$CONGRESS_HOST:/home/ubuntu
juju scp ~/git/copper/components/congress/joid/install_congress_4.sh ubuntu@$CONGRESS_HOST:/home/ubuntu
-ssh ubuntu@$CONGRESS_HOST "source ~/install_congress_4.sh; exit"
+ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$CONGRESS_HOST "source ~/install_congress_4.sh; exit"
+return