X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2F01-bootstrap.sh;h=88f87dd5c878a4ee0bd8ed44e9d3b0bbc2d45a10;hb=c2c31d6bb5633d999f130b6be56584a9ecf338e6;hp=4a20ca23816e04a0afda89662b17a3b6f07d1bf4;hpb=f1dfc0776d32dea2a2fe7e2cb2b15b1836a6b666;p=joid.git diff --git a/ci/01-bootstrap.sh b/ci/01-bootstrap.sh index 4a20ca23..88f87dd5 100755 --- a/ci/01-bootstrap.sh +++ b/ci/01-bootstrap.sh @@ -6,8 +6,8 @@ set -ex jujuver=`juju --version` -if [ "$jujuver" -lt "2" ]; then - juju bootstrap --debug --to bootstrap.maas +if [[ "$jujuver" < "2" ]]; then + juju bootstrap --debug --to bootstrap.maas --agent-version 1.25.5 sleep 5 #disable juju gui until xenial charms are in charm store. juju deploy cs:juju-gui-130 --to 0 @@ -16,7 +16,7 @@ if [ "$jujuver" -lt "2" ]; then juju set-constraints tags= else - controllername=`awk 'NR==1{print $2}' environments.yaml` - cloudname=`awk 'NR==1{print $2}' environments.yaml` + controllername=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml` + cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml` juju bootstrap $controllername $cloudname --debug --to bootstrap.maas fi