summaryrefslogtreecommitdiffstats
path: root/ci/deploy.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-05-09 22:01:06 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2016-05-09 22:02:14 -0600
commit249e72a62329af1fb09543abfdf8edaddf16f9a7 (patch)
treeabdbc06124732b875b024fdca0f08695acd0ca2f /ci/deploy.sh
parent5b612ac1a59429c6d6b0561e94292777c5877888 (diff)
modfied to support xenial and mutiple architecture.
Change-Id: I48e693a34ac777bdfbcb56c3cd4512699f1eb664 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-xci/deploy.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 6e82d086..75e896d1 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -11,6 +11,8 @@ openstack=liberty
opnfvlab=default
opnfvrel=b
opnfvfeature=odl_l2
+opnfvdistro=trusty
+opnfvarch=amd64
read_config() {
opnfvrel=`grep release: deploy.yaml | cut -d ":" -f2`
@@ -25,6 +27,8 @@ usage() { echo "Usage: $0 [-s <nosdn|odl|opencontrail>]
[-o <juno|liberty>]
[-l <default|intelpod5>]
[-f <ipv6|l2|l3|dvr>]
+ [-d <trusty|xenial>]
+ [-a <amd64>]
[-r <a|b>]" 1>&2 exit 1; }
while getopts ":s:t:o:l:h:r:f:" opt; do
@@ -47,6 +51,12 @@ while getopts ":s:t:o:l:h:r:f:" opt; do
f)
opnfvfeature=${OPTARG}
;;
+ d)
+ opnfvdistro=${OPTARG}
+ ;;
+ a)
+ opnfvarch=${OPTARG}
+ ;;
h)
usage
;;
@@ -102,7 +112,7 @@ deploy() {
echo " enable-os-refresh-update: false" >> environments.yaml
echo " enable-os-upgrade: false" >> environments.yaml
echo " admin-secret: admin" >> environments.yaml
- echo " default-series: trusty" >> environments.yaml
+ echo " default-series: $opnfvdistro" >> environments.yaml
cp environments.yaml ~/.juju/
@@ -110,11 +120,11 @@ deploy() {
createresource
fi
- #cp ./$opnfvsdn/01-deploybundle.sh ./01-deploybundle.sh
+ #bootstrap the node
./00-bootstrap.sh
- #case default:
- ./01-deploybundle.sh $opnfvtype $openstack $opnfvlab $opnfvsdn $opnfvfeature
+ #case default deploy the opnfv platform:
+ ./01-deploybundle.sh $opnfvtype $openstack $opnfvlab $opnfvsdn $opnfvfeature $opnfvdistro
}
#check whether charms are still executing the code even juju-deployer says installed.