summaryrefslogtreecommitdiffstats
path: root/ci/odl
diff options
context:
space:
mode:
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 ...."