1e63b2e45a
Create the platform openrc file in /etc/platform, while leaving existing /etc/nova/openrc file alone for now. New platform/client.pp file is created and most of the contents of openstack/client.pp moved there. openstack/client.pp can be removed once kubernetes is the default. Change-Id: Ib6de59da6dfc9f34a24054405b6cda30d0b74ac1 Story: 2002876 Task: 27499 Signed-off-by: Kevin Smith <kevin.smith@windriver.com>
25 lines
854 B
Plaintext
25 lines
854 B
Plaintext
unset OS_SERVICE_TOKEN
|
|
|
|
export OS_ENDPOINT_TYPE=internalURL
|
|
export CINDER_ENDPOINT_TYPE=internalURL
|
|
|
|
export OS_USERNAME=<%= @admin_username %>
|
|
export OS_PASSWORD=`TERM=linux <%= @keyring_file %> 2>/dev/null`
|
|
export OS_AUTH_TYPE=password
|
|
export OS_AUTH_URL=<%= @identity_auth_url %>
|
|
|
|
export OS_PROJECT_NAME=<%= @admin_project_name %>
|
|
export OS_USER_DOMAIN_NAME=<%= @admin_user_domain %>
|
|
export OS_PROJECT_DOMAIN_NAME=<%= @admin_project_domain %>
|
|
export OS_IDENTITY_API_VERSION=<%= @identity_api_version %>
|
|
export OS_REGION_NAME=<%= @identity_region %>
|
|
export OS_KEYSTONE_REGION_NAME=<%= @keystone_identity_region %>
|
|
export OS_INTERFACE=internal
|
|
|
|
if [ ! -z "${OS_PASSWORD}" ]; then
|
|
export PS1='[\u@\h \W(keystone_$OS_USERNAME)]\$ '
|
|
else
|
|
echo 'Openstack Admin credentials can only be loaded from the active controller.'
|
|
export PS1='\h:\w\$ '
|
|
fi
|