inspector: fix service catalog creation

The service catalog is not properly created at the moment, this patch
fixes it.

Change-Id: I7439b21247302f2cf1dbe6732c124c3b1d25bb70
This commit is contained in:
Mohammed Naser 2020-06-11 11:17:53 -04:00
parent 02750db47b
commit eeffeeef04
2 changed files with 3 additions and 3 deletions

View File

@ -147,7 +147,7 @@
_service_users: "{{ ironic_service_user_list }}"
_service_endpoints: "{{ ironic_service_endpoint_list }}"
_service_catalog: "{{ ironic_service_catalog_list }}"
when: inventory_hostname == groups['ironic_api'][0]
when: (inventory_hostname == groups['ironic_api'][0] or inventory_hostname == groups['ironic_inspector'][0])
tags:
- ironic-config

View File

@ -210,7 +210,7 @@ ironic_service_endpoint_list: >
)
%}
{%- endif %}
{%- if inventory_hostname in groups['ironic_inspector'] %}
{%- if ironic_services['ironic-inspector']['group'] in group_names %}
{%- set _ = service_endpoint_list.append(
{
'service': ironic_inspector_service_name,
@ -250,7 +250,7 @@ ironic_service_catalog_list: >
)
%}
{%- endif %}
{%- if inventory_hostname in groups['ironic_inspector'] %}
{%- if ironic_services['ironic-inspector']['group'] in group_names %}
{%- set _ = service_catalog_list.append(
{
'name': ironic_inspector_service_name,