From 1be4eaa3f0ebc3b5a04108d424b81f158ad13412 Mon Sep 17 00:00:00 2001 From: blsaws Date: Tue, 8 Mar 2016 17:33:43 -0800 Subject: Add controller name input param. JIRA: COPPER-4 Change-Id: I91b4697fe55972f592b2e8822bfc18df9134418f Signed-off-by: blsaws --- .../congress/test-webapp/setup/install_congress_testserver_1.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/congress/test-webapp/setup/install_congress_testserver_1.sh b/components/congress/test-webapp/setup/install_congress_testserver_1.sh index 1309d7a..87fc8f9 100644 --- a/components/congress/test-webapp/setup/install_congress_testserver_1.sh +++ b/components/congress/test-webapp/setup/install_congress_testserver_1.sh @@ -22,21 +22,21 @@ # - ~/env.sh created as part of Congress install (install_congress_3.sh) # How to use: # Install OPNFV per https://wiki.opnfv.org/copper/academy/joid -# $ source install_congress_testserver_1.sh +# $ source install_congress_testserver_1.sh +# is the name of the controller node in MAAS. # Following are notes on creating a container as test driver for Congress. # This is based upon an Ubuntu host as installed by JOID. # === Create and Activate the Container === -# # On the jumphost # Earlier versions of the JOID installer installed lxc and created local templates # but now we have to get the ubuntu template from the controller set -x sudo apt-get install -y lxc -juju scp ubuntu@node1-control:/usr/share/lxc/templates/lxc-ubuntu ~/lxc-ubuntu +juju scp ubuntu@$1:/usr/share/lxc/templates/lxc-ubuntu ~/lxc-ubuntu sudo cp ~/lxc-ubuntu /usr/share/lxc/templates/lxc-ubuntu sudo lxc-create -n trusty-copper -t /usr/share/lxc/templates/lxc-ubuntu -l DEBUG -- -b opnfv ~/opnfv sudo lxc-start -n trusty-copper -d @@ -70,4 +70,3 @@ EOF ssh -t -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no opnfv@$COPPER_HOST "source ~/git/copper/components/congress/test-webapp/setup/install_congress_testserver_2.sh; exit" set +x -# -- cgit 1.2.3-korg