Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')
- for param in $_OS_PARAMS; do
- if [ "$param" = "OS_AUTH_PROTOCOL" ]; then continue; fi
- if [ "$param" = "OS_CACERT" ]; then continue; fi
- unset $param
- done
- unset _OS_PARAMS
- _keystone_unit=$(juju status keystone --format yaml | \
- awk '/units:$/ {getline; gsub(/:$/, ""); print $1}')
- _keystone_ip=$(juju run --unit ${_keystone_unit} 'unit-get private-address')
- _password=$(juju run --unit ${_keystone_unit} 'leader-get admin_passwd')
- export OS_AUTH_URL=${OS_AUTH_PROTOCOL:-http}://${_keystone_ip}:5000/v3
- export OS_USERNAME=admin
- export OS_PASSWORD=${_password}
- export OS_USER_DOMAIN_NAME=admin_domain
- export OS_PROJECT_DOMAIN_NAME=admin_domain
- export OS_PROJECT_NAME=admin
- export OS_REGION_NAME=RegionOne
- export OS_IDENTITY_API_VERSION=3
- # Swift needs this:
- export OS_AUTH_VERSION=3
- # Gnocchi needs this
- export OS_AUTH_TYPE=password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement