diff options
author | blsaws <bs3131@att.com> | 2016-03-08 17:08:38 -0800 |
---|---|---|
committer | blsaws <bs3131@att.com> | 2016-03-08 17:08:38 -0800 |
commit | f98bd5be6686197dbbb6b0f4275f7c5e3b9fbd10 (patch) | |
tree | 9c99569fa426759c4917f6871bce0578aeb96e60 /components/congress/joid | |
parent | d1c545cd1f9aadbfada0e62e980ab6fb70eeda99 (diff) |
Add controller name input param
JIRA: COPPER-2
Change-Id: Idc1db33dd8cb377b7dc43c4b800a8512e9c2f0cc
Signed-off-by: blsaws <bs3131@att.com>
Diffstat (limited to 'components/congress/joid')
-rw-r--r-- | components/congress/joid/install_congress_1.sh | 5 |
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 |