Senlin RC file initial version
We "invented" this file because the devstack environment is export OS_TENANT_NAME instead of OS_PROJECT_NAME. We are dropping support to 'OS_TENANT_NAME' from the very beginning. To use this file: $ source senlinrc admin demo
This commit is contained in:
22
senlinrc
Normal file
22
senlinrc
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ -n "$1" ]]; then
|
||||||
|
OS_USERNAME=$1
|
||||||
|
fi
|
||||||
|
if [[ -n "$2" ]]; then
|
||||||
|
OS_PROJECT_NAME=$2
|
||||||
|
fi
|
||||||
|
|
||||||
|
export OS_PROJECT_NAME=${OS_PROJECT_NAME:-demo}
|
||||||
|
export OS_USERNAME=${OS_USERNAME:-demo}
|
||||||
|
export OS_PASSWORD=${ADMIN_PASSWORD:=secrete}
|
||||||
|
export OS_REGION_NAME=${REGION_NAME:-RegionOne}
|
||||||
|
|
||||||
|
HOST_IP=${HOST_IP:-127.0.0.1}
|
||||||
|
SERVICE_HOST=${SERVICE_HOST:-$HOST_IP}
|
||||||
|
SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http}
|
||||||
|
KEYSTONE_AUTH_PROTOCOL=${KEYSTONE_AUTH_PROTOCOL:-$SERVICE_PROTOCOL}
|
||||||
|
KEYSTONE_AUTH_HOST=${KEYSTONE_AUTH_HOST:-$SERVICE_HOST}
|
||||||
|
|
||||||
|
export OS_IDENTITY_API_VERSION=${IDENTITY_API_VERSION:-3}
|
||||||
|
export OS_AUTH_URL=$KEYSTONE_AUTH_PROTOCOL://$KEYSTONE_AUTH_HOST:5000/v${OS_IDENTITY_API_VERSION}
|
Reference in New Issue
Block a user