puppet-openstack_extras/templates/openrc.erb
Emilien Macchi 67a21c9a8d authfile: fix OS_IDENTITY_API_VERSION
In a previous commit (I did, mea culpa), I set IDENTITY_API_VERSION
while we should use OS_IDENTITY_API_VERSION.

Change-Id: I625adb5d8ef1898bd9a44a76a09b3f985146c96c
2016-02-16 17:25:07 -05:00

30 lines
1.1 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 -%>
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 %>'