5 #need to put mutiple cases here where decide this bundle to deploy by default use the odl bundle.
6 # Below parameters are the default and we can according the release
15 opnfvrel=`grep release: deploy.yaml | cut -d ":" -f2`
16 openstack=`grep openstack: deploy.yaml | cut -d ":" -f2`
17 opnfvtype=`grep type: deploy.yaml | cut -d ":" -f2`
18 opnfvlab=`grep lab: deploy.yaml | cut -d ":" -f2`
19 opnfvsdn=`grep sdn: deploy.yaml | cut -d ":" -f2`
22 usage() { echo "Usage: $0 [-s <odl|opencontrail>]
24 [-o <juno|kilo|liberty>]
26 [-r <a|b>]" 1>&2 exit 1; }
28 while getopts ":s:t:o:l:h:r:" opt; do
54 sudo apt-get install git -y
55 sudo apt-add-repository ppa:juju/stable -y
57 sudo apt-get install juju juju-deployer -y
59 cp environments.yaml ~/.juju/
63 #copy the script which needs to get deployed as part of ofnfv release
65 cp ./$opnfvsdn/01-deploybundle.sh ./01-deploybundle.sh
69 ./01-deploybundle.sh $opnfvtype $openstack $opnfvlab
72 if [ "$#" -eq 0 ]; then
73 echo "This installtion will use deploy.yaml"
77 echo "deploying started"
80 echo "deploying finished"