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/deploy.sh | 66 ++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 29 deletions(-) mode change 100644 => 100755 ci/deploy.sh (limited to 'ci/deploy.sh') diff --git a/ci/deploy.sh b/ci/deploy.sh old mode 100644 new mode 100755 index 9f263f37..9721a4b0 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -1,38 +1,46 @@ #!/bin/bash -<<<<<<< HEAD -#placeholder for deployment script. -set -ex - -cp intel/pod5/kilo/odl/nonha/deploy.sh ./deployopnfv.sh - -echo "bootstrap started" -juju bootstrap --debug --to bootstrap.maas -sleep 15 -juju deploy juju-gui --to 0 - -echo "bootstrap finished" - -./deployopnfv.sh - -======= set -ex ./01-bootstrap.sh #need to put mutiple cases here where decide this bundle to deploy by default use the odl bundle. - -#case deploy opencontrail -#cp ./opencontrail/01-deploybundle.sh ./01-deploybundle.sh - -#case deploy ODL bundle -cp ./odl/01-deploybundle.sh ./01-deploybundle.sh +# Below parameters are the default and we can according the release + +opnfvsdn=odl +opnfvtype=nonha +openstack=kilo +opnfvlab=intelpod5 + +usage() { echo "Usage: $0 [-s ] + [-t ] + [-o ] + [-l ]" 1>&2 exit 1;} + +while getopts ":s:t:o:l:h:" opt; do + case "${opt}" in + s) + opnfvsdn=${OPTARG} + ;; + t) + opnfvtype=${OPTARG} + ;; + o) + openstack=${OPTARG} + ;; + l) + opnfvlab=${OPTARG} + ;; + h) + usage + ;; + *) + ;; + esac +done + +#copy the script which needs to get deployed as part of ofnfv release +cp ./$opnfvsdn/01-deploybundle.sh ./01-deploybundle.sh #case default: -./01-deploybundle.sh - -#case ha: -#./01-deploybundle.sh ha +./01-deploybundle.sh $opnfvtype $openstack $opnfvlab -#case tip -#./01-deploybundle.sh tip ->>>>>>> 3b30953... Added a script to have a openstack with odl bundle. -- cgit 1.2.3-korg