e09bec2c83
This patch makes the bifrost-keystone-client-config role a bit more generic to allow creating more that a single cloud configuration setting. The role is changed to accept a dict with possibly many clouds configurations, and the template for clouds.yaml is changed accordingly. This new functionality is used right away to add the keystone admin user to the created clouds.yaml file to make the installed keystone usable for admin-level operations (listing and editig users, projects, roles and role assignments) - the name of the 'cloud' created is 'bifrost-admin'. Change-Id: Icb274de989966645cd0f3874f8dff9d9f37d871b
15 lines
583 B
Django/Jinja
15 lines
583 B
Django/Jinja
# WARNING: This file is managed by bifrost.
|
|
clouds:
|
|
{% 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 %}
|