X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2F01-bootstrap.sh;h=b02b83d36c75d02d2d4cefa5ba8f1f0e7b5cb71b;hb=d34b7dfbcee799533c25735db0e8aa47f433c0c7;hp=c04ae2daf97025ccae8d452c14c9957e4525fefa;hpb=4721b062c4ac0fe8030407948b856661beb8ed46;p=joid.git diff --git a/ci/01-bootstrap.sh b/ci/01-bootstrap.sh index c04ae2da..b02b83d3 100755 --- a/ci/01-bootstrap.sh +++ b/ci/01-bootstrap.sh @@ -2,10 +2,21 @@ set -ex -juju bootstrap --debug --to bootstrap.maas -sleep 5 -juju deploy juju-gui --to 0 +#export JUJU_DEV_FEATURE_FLAGS=address-allocation -JUJU_REPOSITORY= -juju set-constraints tags= +jujuver=`juju --version` +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 + + JUJU_REPOSITORY= + juju set-constraints tags= + +else + 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