X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fdeploy.sh;h=8cc0bd7ce3c43fa0d68b324bb67db1721d19b891;hb=1bb7f148a09b261ea0786cbc6a97abd9a629a36c;hp=6e82d086e4971436e9b6963e2f9c4af8e8ec2c88;hpb=8121d37c69d936ab8699f3eff6524e9f9751ac35;p=joid.git diff --git a/ci/deploy.sh b/ci/deploy.sh index 6e82d086..8cc0bd7c 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,9 +27,11 @@ usage() { echo "Usage: $0 [-s ] [-o ] [-l ] [-f ] + [-d ] + [-a ] [-r ]" 1>&2 exit 1; } -while getopts ":s:t:o:l:h:r:f:" opt; do +while getopts ":s:t:o:l:h:r:f:d:a:" opt; do case "${opt}" in s) opnfvsdn=${OPTARG} @@ -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.