Monty Taylor 73a1812c58 Add clouds.yaml file and use it
clouds.yaml[0] is a richer way to express configuration for OpenStack
clouds. It's also fully supported by Ansible's OpenStack modules as
well as python-openstackclient and openstacksdk. It's the future - who
doesn't like the future?

Write a file using both the public (default) and the internal endpoints
for the admin user. Also, change all of the examples to reference it
and to get python-openstackclient to use it too.

[0] https://docs.openstack.org/openstacksdk/latest/user/guides/connect_from_config.html

Implements: blueprint use-clouds-yaml
Change-Id: I557d2e4975c7b3d3c713a556b9ba47af9567ce6e
2022-08-08 12:19:47 +00:00

27 lines
967 B
Django/Jinja

clouds:
kolla-admin:
auth:
auth_url: {{ keystone_public_url }}
project_domain_name: Default
user_domain_name: Default
project_name: {{ keystone_admin_project }}
username: {{ keystone_admin_user }}
password: {{ keystone_admin_password }}
region_name: {{ openstack_region_name }}
{% if kolla_admin_openrc_cacert is not none and kolla_admin_openrc_cacert | length > 0 %}
cacert: {{ kolla_admin_openrc_cacert }}
{% endif %}
kolla-admin-internal:
auth:
auth_url: {{ keystone_internal_url }}
project_domain_name: Default
user_domain_name: Default
project_name: {{ keystone_admin_project }}
username: {{ keystone_admin_user }}
password: {{ keystone_admin_password }}
interface: internal
region_name: {{ openstack_region_name }}
{% if kolla_admin_openrc_cacert is not none and kolla_admin_openrc_cacert | length > 0 %}
cacert: {{ kolla_admin_openrc_cacert }}
{% endif %}