diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-06-30 17:04:04 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-06-30 17:09:47 -0500 |
commit | 1f67ee4bac259f5997ee570eec3060f24e05d56f (patch) | |
tree | aacef5d6135c005ec147a9ba55ad79b4c7732247 /ci/01-deploybundle.sh | |
parent | 8af52f45681275997204080f1cac854b255f2bcc (diff) |
modified to make use of the bundle generated.
Change-Id: I1854658a93dbb3cbd1a7c41d19d7a76645ede85c
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/01-deploybundle.sh')
-rwxr-xr-x | ci/01-deploybundle.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh index 08f539b5..bf16ce7c 100755 --- a/ci/01-deploybundle.sh +++ b/ci/01-deploybundle.sh @@ -89,9 +89,14 @@ case "$3" in esac # lets put the if seperateor as "," as this will save me from world. +fea="" IFS="," - for feature in $5; do + if [ "$fea" == "" ]; then + fea=$feature + else + fea=$fea"_"$feature + fi case "$feature" in 'ipv6' ) sed -i -- 's/#prefer-ipv6: true/prefer-ipv6: true/g' ./bundles.yaml @@ -139,6 +144,13 @@ case "$6" in ;; esac +var=os-$4-$fea-$1 +if [ "$4" == "nosdn" ]; then + python genBundle.py -l deployconfig.yaml -s $var > bundles.yaml +elif [ "$4" == "odl" ]; then + python genBundle.py -l deployconfig.yaml -s $var > bundles.yaml +fi + echo "... Deployment Started ...." juju-deployer -vW -d -t 3600 -c bundles.yaml $6-"$2"-nodes check_status |