de0a964e1a
os-client-config can work for standalone mode with specifically written clouds.yaml file providing auth_type as None. This patch changes `bifrost-keystone-client-config` role to write `clouds.yaml` file also when keystone is not installed, with a `bifrost` cloud configured, so that users can write automation scripts around ironic installed by bifrost in unified manner independently of whether keystone is installed or not, by using openstack --os-cloud bifrost ... command. This effectively mimics current `env-vars` file in bifrost, but using `clouds.yaml` configuration file. Change-Id: I4c27ffed20b3d02723f7be99ccd61d8cee74bea1
22 lines
731 B
Django/Jinja
22 lines
731 B
Django/Jinja
# WARNING: This file is managed by bifrost.
|
|
clouds:
|
|
{% if (enable_keystone | default(false) | bool) %}
|
|
{% for cloud in clouds | default({}) | dictsort %}
|
|
{{ cloud.0 }}:
|
|
region_name: {{ cloud.1.config_region_name }}
|
|
auth:
|
|
username: {{ cloud.1.config_username }}
|
|
password: {{ cloud.1.config_password }}
|
|
project_name: {{ cloud.1.config_project_name }}
|
|
auth_url: {{ cloud.1.config_auth_url }}
|
|
project_domain_id: "{{ cloud.1.config_project_domain_id | default('default') }}"
|
|
user_domain_id: "{{ cloud.1.config_user_domain_id | default('default') }}"
|
|
identity_api_version: "3"
|
|
{% endfor %}
|
|
{% else %}
|
|
bifrost:
|
|
auth_type: None
|
|
auth: {}
|
|
url: {{ ironic_api_url }}
|
|
{% endif %}
|