80cf00dffe
OSC does not use service-specific environment variables for choosing endpoints. It requires a common OS_INTERFACE variable that is used for --os-interface. OS_ENDPOINT_TYPE is the analog for older service-specific clients and is used for --os-endpoint-type. Change-Id: I5dd8de00e72631d578cf7e0b7028705a5cda1ddb
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
#!/bin/sh
|
|
<% if @service_token -%>
|
|
export OS_SERVICE_TOKEN='<%= @service_token.gsub(/'/){ %q(\') } %>'
|
|
export OS_SERVICE_ENDPOINT='<%= @service_endpoint %>'
|
|
<% end -%>
|
|
export OS_NO_CACHE='<%= @use_no_cache %>'
|
|
<% if @tenant_name -%>
|
|
export OS_TENANT_NAME='<%= @tenant_name %>'
|
|
<% end -%>
|
|
<% if @project_name -%>
|
|
export OS_PROJECT_NAME='<%= @project_name %>'
|
|
<% end -%>
|
|
export OS_USERNAME='<%= @username %>'
|
|
export OS_PASSWORD='<%= @password.gsub(/'/){ %q(\') } %>'
|
|
export OS_AUTH_URL='<%= @auth_url %>'
|
|
export OS_AUTH_STRATEGY='<%= @auth_strategy %>'
|
|
export OS_REGION_NAME='<%= @region_name %>'
|
|
<% if @project_domain -%>
|
|
export OS_PROJECT_DOMAIN_NAME='<%= @project_domain %>'
|
|
<% end -%>
|
|
<% if @user_domain -%>
|
|
export OS_USER_DOMAIN_NAME='<%= @user_domain %>'
|
|
<% end -%>
|
|
<% if @auth_type -%>
|
|
export OS_AUTH_TYPE='<%= @auth_type %>'
|
|
<% end -%>
|
|
export OS_INTERFACE='<%= @os_interface %>'
|
|
export OS_ENDPOINT_TYPE='<%= @os_endpoint_type %>'
|
|
export CINDER_ENDPOINT_TYPE='<%= @cinder_endpoint_type %>'
|
|
export GLANCE_ENDPOINT_TYPE='<%= @glance_endpoint_type %>'
|
|
export KEYSTONE_ENDPOINT_TYPE='<%= @keystone_endpoint_type %>'
|
|
export NOVA_ENDPOINT_TYPE='<%= @nova_endpoint_type %>'
|
|
export NEUTRON_ENDPOINT_TYPE='<%= @neutron_endpoint_type %>'
|
|
export OS_IDENTITY_API_VERSION='<%= @identity_api_version %>'
|