training-guides/labs/config/admin-openstackrc.sh
Roger Luethi 9d787fd250 labs: rename openstackrc file
Rename labs-openstackrc.sh to admin-openstackrc.sh because we are about
to introduce a second openstackrc.sh for a user that is obviously also
part of labs, but not an admin.

Change-Id: Ifa58b260e7b5386ce7ccc6075cdf5ef2dc1ee9ce
2014-08-18 14:30:17 +02:00

16 lines
555 B
Bash

# The variables in this file are exported for use by OpenStack client
# applications.
# Unlike a regular openstackrc.sh file, this file gets its variable values
# from other configuration files (to limit redundancy).
# Use BASH_SOURCE so the file works when sourced from a shell, too
CONFIG_DIR=$(dirname "$BASH_SOURCE")
source "$CONFIG_DIR/openstack"
source "$CONFIG_DIR/credentials"
export OS_USERNAME=$ADMIN_USER_NAME
export OS_PASSWORD=$ADMIN_PASSWORD
export OS_TENANT_NAME=$ADMIN_TENANT_NAME
export OS_AUTH_URL="http://controller-mgmt:35357/v2.0"