fuel-library/deployment/puppet/osnailyfacter/templates/openrc.erb

28 lines
1.1 KiB
Plaintext

#!/bin/sh
<% if @keystone_admin_token -%>
export OS_SERVICE_TOKEN='<%= @keystone_admin_token.gsub(/'/){ %q(\') } %>'
export OS_SERVICE_ENDPOINT='<%= @admin_url %>/v2.0/'
<% end -%>
export OS_NO_CACHE='<%= @use_no_cache %>'
export OS_TENANT_NAME='<%= @admin_tenant.gsub(/'/){ %q(\') } %>'
export OS_PROJECT_NAME='<%= @admin_tenant.gsub(/'/){ %q(\') } %>'
export OS_USERNAME='<%= @admin_user.gsub(/'/){ %q(\') } %>'
export OS_PASSWORD='<%= @admin_password.gsub(/'/){ %q(\') } %>'
export OS_AUTH_URL='<%= @auth_url %>'
export OS_DEFAULT_DOMAIN='default'
export OS_AUTH_STRATEGY='keystone'
export OS_REGION_NAME='<%= @region_name %>'
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_ENDPOINT_TYPE='<%= @os_endpoint_type %>'
export MURANO_REPO_URL='<%= @murano_repo_url %>'
<% if @murano_glare_plugin -%>
export MURANO_PACKAGES_SERVICE='glance'
<% end -%>
<% if @cacert -%>
export OS_CACERT='<%= @cacert %>'
<% end -%>