summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblsaws <bs3131@att.com>2016-03-08 17:08:38 -0800
committerblsaws <bs3131@att.com>2016-04-01 08:30:07 -0700
commitad54add91ce7c7724cadd30d261b3d0f4bf5dfe2 (patch)
tree9c99569fa426759c4917f6871bce0578aeb96e60
parent903b7477c914c0d3e70747cba63edddd9086dcac (diff)
Add controller name input param
JIRA: COPPER-2 Change-Id: Idc1db33dd8cb377b7dc43c4b800a8512e9c2f0cc Signed-off-by: blsaws <bs3131@att.com>
-rw-r--r--components/congress/joid/install_congress_1.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/congress/joid/install_congress_1.sh b/components/congress/joid/install_congress_1.sh
index 251eb67..672a869 100644
--- a/components/congress/joid/install_congress_1.sh
+++ b/components/congress/joid/install_congress_1.sh
@@ -19,7 +19,8 @@
#
# On jumphost:
# Download admin-openrc.sh from Horizon and save in ~
-# source ~/git/copper/components/congress/joid/install_congress_1.sh
+# source ~/git/copper/components/congress/joid/install_congress_1.sh <controller_hostname>
+# <controller_hostname> is the name of the controller node in MAAS.
set -x
@@ -30,7 +31,7 @@ juju ssh ubuntu@node1-control "sudo lxc-clone -o juju-trusty-lxc-template -n juj
CONGRESS_HOST=""
while [ "$CONGRESS_HOST" == "" ]; do
sleep 5
- CONGRESS_HOST=$(juju ssh ubuntu@node1-control "sudo lxc-info --name juju-trusty-congress | grep IP" | awk "/ / { print \$2 }" | tr -d '\r')
+ CONGRESS_HOST=$(juju ssh ubuntu@$1 "sudo lxc-info --name juju-trusty-congress | grep IP" | awk "/ / { print \$2 }" | tr -d '\r')
done
# Create the environment file and copy to the congress server