summaryrefslogtreecommitdiffstats
path: root/ci/deploy.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-08-19 17:53:52 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-08-19 17:59:21 -0500
commitdc2188eb979f9ba70d687267671aa585c47a05d9 (patch)
treecd5ded11961da2c7c283ddb22e84a49192a8c7bc /ci/deploy.sh
parent14d891da03cf0eeafd0d8b53174144dc6462877a (diff)
modfied to take care of labconfig.yaml file copy and change the
bundle to deploy with haproxy Change-Id: Iec5126562e4a78b8b4984ce2992ab81a197f90b0 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-xci/deploy.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index b69b5baa..bb7e63bc 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -167,10 +167,10 @@ echo "...... deploy public api proxy ......"
if [ "$opnfvlab" == "orangepod1" ] && [ "$opnfvsdn" == "nosdn" ]; then # only for first test phase
PUB_API_NET=$(grep floating-ip-range ./labconfig.yaml |cut -d/ -f2)
PUB_API_IP=$(grep public-api-ip ./labconfig.yaml |cut -d: -f2)
- juju run --unit nodes/0 "sudo ip a a ${PUB_API_IP}/${PUB_API_NET} dev br-ex"
- juju run --unit nodes/0 "sudo ip l set dev br-ex up"
- python genPublicAPIProxyBundle.py -l labconfig.yaml > haproxy.bundle.yaml
- juju-deployer -vW -d -t 7200 -r 5 -c haproxy.bundle.yaml haproxy
+ juju run --unit nodes/0 "sudo ip a a ${PUB_API_IP}/${PUB_API_NET} dev br-ex" || true
+ juju run --unit nodes/0 "sudo ip l set dev br-ex up" || true
+ python genPublicAPIProxyBundle.py -l labconfig.yaml >> bundles.yaml
+ juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $opnfvdistro-"$openstack" || true
fi
echo "...... deployment finished ......."