From ad54add91ce7c7724cadd30d261b3d0f4bf5dfe2 Mon Sep 17 00:00:00 2001 From: blsaws Date: Tue, 8 Mar 2016 17:08:38 -0800 Subject: Add controller name input param JIRA: COPPER-2 Change-Id: Idc1db33dd8cb377b7dc43c4b800a8512e9c2f0cc Signed-off-by: blsaws --- components/congress/joid/install_congress_1.sh | 5 +++-- 1 file 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 +# 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 -- cgit 1.2.3-korg