X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2F01-bootstrap.sh;h=4d265f3221c1576bd2590093d40c96d9e148c0ab;hb=cad1d5cf0b3c9cfd376dc62d1c60f7602eb10031;hp=5ec5e68e6b0ca97eecbef7073add3776cdd73e5d;hpb=7ae91a059f2b498ebacc66440f5de21eea99033c;p=joid.git diff --git a/ci/01-bootstrap.sh b/ci/01-bootstrap.sh index 5ec5e68e..4d265f32 100755 --- a/ci/01-bootstrap.sh +++ b/ci/01-bootstrap.sh @@ -6,8 +6,8 @@ set -ex jujuver=`juju --version` -if [ "$jujuver" < "2" ]; then - juju bootstrap --debug --to bootstrap.maas +if [[ "$jujuver" < "2" ]]; then + juju bootstrap --debug --to bootstrap.maas --agent-version 1.25.6 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" < "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)}' deployment.yaml` + cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployment.yaml` juju bootstrap $controllername $cloudname --debug --to bootstrap.maas fi