Byron McCollum b7fb66f7bd Implement OpenStack client clouds.yml configuration file
OpenStack client supports defining one or more sets of credentials
inside a clouds.yml configuration file. A default configuration has
been created named `default` that contains the same admin credentials
from the `openrc` file currently being templated.

The default configuration can be specified using the following:

openstack --os-cloud default <command>

Change-Id: Icc0c06a9b9a9e2e75b58fe90b4da9dd46b63e7f4
2015-12-15 20:47:43 -06:00

19 lines
608 B
YAML

# {{ ansible_managed }}
clouds:
default:
auth:
auth_url: {{ openrc_os_auth_url }}
project_name: {{ openrc_os_tenant_name }}
tenant_name: {{ openrc_os_tenant_name }}
username: {{ openrc_os_username }}
password: {{ openrc_os_password }}
user_domain_name: {{ openrc_os_domain_name }}
project_domain_name: {{ openrc_os_domain_name }}
region_name: {{ openrc_clouds_yml_region_name }}
interface: {{ openrc_clouds_yml_interface }}
{% if openrc_os_auth_url.endswith('v3') %}
identity_api_version: "3"
{% else %}
identity_api_version: "2.0"
{% endif %}