summaryrefslogtreecommitdiffstats
path: root/ci/opencontrail
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/opencontrail
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/opencontrail')
-rwxr-xr-xci/opencontrail/01-deploybundle.sh27
1 files changed, 17 insertions, 10 deletions
diff --git a/ci/opencontrail/01-deploybundle.sh b/ci/opencontrail/01-deploybundle.sh
index 07365780..9e9dfee3 100755
--- a/ci/opencontrail/01-deploybundle.sh
+++ b/ci/opencontrail/01-deploybundle.sh
@@ -1,19 +1,26 @@
#!/bin/bash
+#!/bin/bash
#placeholder for deployment script.
set -ex
-cp opencontrail/juju-deployer/contrail.yaml ./
+case "$1" in
+ 'nonha' )
+ cp opencontrail/juju-deployer/contrail.yaml ./bundles.yaml
+ ;;
+ 'ha' )
+ cp opencontrail/juju-deployer/contrail-ha.yaml ./bundles.yaml
+ ;;
+ 'tip' )
+ cp opencontrail/juju-deployer/contrail-tip.yaml ./bundles.yaml
+ ;;
+ * )
+ cp opencontrail/juju-deployer/contrail.yaml ./bundles.yaml
+ ;;
+esac
echo "... Deployment Started ...."
-#case openstack kilo with odl
-juju-deployer -d -r 13 -c contrail.yaml trusty-juno-contrail
-
-#case openstack kilo with odl ha
-#juju-deployer -d -r 13 -c contrail-ha.yaml trusty-juno-contrail
-
-#case openstack master tip git tree with odl
-#cp -R odl/juju-deployer/source/*.yaml ./
-#juju-deployer -d -r 13 -c contrail-tip.yaml trusty-juno-contrail
+juju-deployer -d -r 13 -c bundles.yaml trusty-"$2"-contrail
echo "... Deployment finished ...."
+