Mark Goddard 2486f456d4 Install openstack client, inspector in clouds.yml
Installs the openstack client unconditionally, not just when keystone is
enabled. This allows us to communicate with ironic inspector, and a new
bifrost-inspector entry has been added to clouds.yml in the noauth case
to support this.

Also adds a play to test-bifrost.yaml that exercises the openstack
client by performing a node list and querying inspector rules.

Change-Id: I19dfe3f63ba2c7fea7ce5881d7c8d0dff8f11264
2018-08-15 19:23:51 +01:00

24 lines
813 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"
endpoint: {{ ironic_api_url }}
bifrost-inspector:
auth_type: "none"
endpoint: {{ ironic_inspector_api_url }}
{% endif %}