summaryrefslogtreecommitdiffstats
path: root/ci/odl
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canoncial.com>2015-09-01 13:19:55 -0500
committerNarinder Gupta <narinder.gupta@canoncial.com>2015-09-01 14:32:36 -0500
commit8dc78e50d69a171154b619944c90bca7abe6dc85 (patch)
treea1449d4dd012a9696123726e2278538799ac8ea2 /ci/odl
parentb5c5f74a35b7c2a3413bfac94811d8e6035aa3ae (diff)
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
Diffstat (limited to 'ci/odl')
-rwxr-xr-xci/odl/01-deploybundle.sh24
1 files changed, 15 insertions, 9 deletions
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 ...."