modified to use boot from volume support in ceph and nova compute.
[joid.git] / ci / 01-bootstrap.sh
1 #!/bin/bash
2
3 set -ex
4
5 #export JUJU_DEV_FEATURE_FLAGS=address-allocation
6
7 jujuver=`juju --version`
8
9 if [[ "$jujuver" < "2" ]]; then
10   juju bootstrap --debug --to bootstrap.maas --agent-version 1.25.5
11   sleep 5
12   #disable juju gui until xenial charms are in charm store.
13   juju deploy cs:juju-gui-130 --to 0
14
15   JUJU_REPOSITORY=
16   juju set-constraints tags=
17
18 else
19   controllername=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml`
20   cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml`
21   juju bootstrap $controllername $cloudname --debug --to bootstrap.maas
22 fi