summaryrefslogtreecommitdiffstats
path: root/ci/01-bootstrap.sh
blob: f09c8670b947127412679cb48a5e62613a320e5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -ex

#export JUJU_DEV_FEATURE_FLAGS=address-allocation

jujuver=`juju --version`

if [[ "$jujuver" < "2" ]]; then
  juju bootstrap --debug --to bootstrap.maas
  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 $2}' environments.yaml`
  cloudname=`awk 'NR==1{print $2}' environments.yaml`
  juju bootstrap $controllername $cloudname --debug --to bootstrap.maas
fi