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.5
sleep 5
#disable juju gui until xenial charms are in charm store.
juju deploy cs:juju-gui-130 --to 0
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