~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/01-bootstrap.sh

  • Committer: Narinder Gupta
  • Date: 2017-01-03 21:57:20 UTC
  • Revision ID: git-v1:6d8bbf8f16d1db5a3251aef5af6a671fd9a68503
update to maas for further changes and added labconfig.yaml for
huawei pod12

Change-Id: I50d2a146afaf439c0d5381c7444dc1fe7fb14f25
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -ex
4
4
 
5
 
controllername=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml`
6
 
cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml`
7
 
juju bootstrap $controllername $cloudname --debug --to bootstrap.maas
 
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)}' deployment.yaml`
 
20
  cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployment.yaml`
 
21
  juju bootstrap $controllername $cloudname --debug --to bootstrap.maas
 
22
fi