From 8dc78e50d69a171154b619944c90bca7abe6dc85 Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Tue, 1 Sep 2015 13:19:55 -0500 Subject: Added execute permission on clean.sh and deploy.sh Added the command line parameters in deply.sh for having various options in the deploy script. Options are -s "sdn type" -t "deploy type" -o "openstack" -l "lab" Based on options aboe we can deploy any combination using the same script. Change-Id: Ia888e97fc9630e9416ebf59747de7ffd79f416ae --- ci/odl/01-deploybundle.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'ci/odl') diff --git a/ci/odl/01-deploybundle.sh b/ci/odl/01-deploybundle.sh index 4d5da31d..3a6c10f4 100755 --- a/ci/odl/01-deploybundle.sh +++ b/ci/odl/01-deploybundle.sh @@ -2,18 +2,24 @@ #placeholder for deployment script. set -ex -cp odl/juju-deployer/ovs-odl.yaml ./ +case "$1" in + 'nonha' ) + cp odl/juju-deployer/ovs-odl.yaml ./bundles.yaml + ;; + 'ha' ) + cp odl/juju-deployer/ovs-odl-ha.yaml ./bundles.yaml + ;; + 'tip' ) + cp odl/juju-deployer/ovs-odl-tip.yaml ./bundles.yaml + ;; + * ) + cp odl/juju-deployer/ovs-odl.yaml ./bundles.yaml + ;; +esac echo "... Deployment Started ...." #case openstack kilo with odl -juju-deployer -d -r 13 -c ovs-odl.yaml trusty-kilo - -#case openstack kilo with odl ha -#juju-deployer -d -r 13 -c ovs-odl-ha.yaml trusty-kilo - -#case openstack master tip git tree with odl -#cp -R odl/juju-deployer/source/*.yaml ./ -#juju-deployer -d -r 13 -c ovs-odl-tip.yaml trusty-master-kilo +juju-deployer -d -r 13 -c bundles.yaml trusty-"$2" echo "... Deployment finished ...." -- cgit 1.2.3-korg