~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/openstack.sh

  • Committer: Narinder Gupta
  • Date: 2017-12-13 16:20:04 UTC
  • Revision ID: git-v1:c129114d52a84187f9eeca21a46fa68567603c97
added OS_interface and password mechanism.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
    mkdir -m 0700 -p cloud
74
74
    keystoneIp=$(keystoneIp)
75
 
    adminPasswd=$(juju config keystone | grep admin-password -A 5 | grep value | awk '{print $2}' 2> /dev/null)
 
75
    adminPasswd=$(juju config keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)['settings']['admin-password']['value']" | cut -d " " -f 1)
76
76
 
77
77
    v3api=`juju config keystone  preferred-api-version`
78
78
 
116
116
export OS_PASSWORD=$2
117
117
export OS_IDENTITY_API_VERSION=3
118
118
export OS_REGION_NAME=$5
 
119
export OS_INTERFACE=public
119
120
#export OS_INSECURE=true
120
121
#export OS_CASSL=~/joid_config/ca.pem
121
122
EOF