6d315598aa
python-openstackclient, shade, openstacksdk and Ansible's OpenStack modules all support reading client config information from a file called clouds.yaml instead of from environment variables set from openrc files. Unfortunately, the only thing horizon currently offers for download is old-style openrc files. Add support for downloading clouds.yaml files. Change-Id: I0611dd44524b746ad993bff7435ec8628a83a762
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
# This is a clouds.yaml file, which can be used by OpenStack tools as a source
|
|
# of configuration on how to connect to a cloud. If this is your only cloud,
|
|
# just put this file in ~/.config/openstack/clouds.yaml and tools like
|
|
# python-openstackclient will just work with no further config. (You will need
|
|
# to add your password to the auth section)
|
|
# If you have more than one cloud account, add the cloud entry to the clouds
|
|
# section of your existing file and you can refer to them by name with
|
|
# OS_CLOUD={{ cloud_name }} or --os-cloud={{ cloud_name }}
|
|
clouds:
|
|
{{ cloud_name }}:
|
|
{% if profile %}
|
|
profile: {{ profile }}
|
|
{% endif %}
|
|
auth:
|
|
{% if not profile %}
|
|
auth_url: {{ auth_url }}
|
|
{% endif %}
|
|
username: "{{ user.username }}"
|
|
project_id: {{ tenant_id }}
|
|
project_name: "{{ tenant_name }}"
|
|
{% if user_domain_name %}
|
|
user_domain_name: "{{ user_domain_name }}"
|
|
{% endif %}
|
|
{% if not profile %}
|
|
{% if regions %}
|
|
regions:
|
|
{% for r in regions %}
|
|
- {{ r }}
|
|
{% endfor %}
|
|
{% else %}
|
|
{% if region %}
|
|
region_name: "{{ region }}"
|
|
{% endif %}
|
|
{% endif %}
|
|
interface: "{{ interface }}"
|
|
identity_api_version: {{ os_identity_api_version }}
|
|
{% endif %}
|