Use a real IP address for ironic-inspector endpoint_override

With managed boot this IP address will be used for the callback URL,
so it cannot be localhost.

Story: #1528920
Task: #37314
Change-Id: I4f67ff88dc59599e4647446ec5f8a4af63d87cae
This commit is contained in:
Dmitry Tantsur 2019-10-28 13:16:03 +01:00
parent dc3f7c3f39
commit 70e9f5e683

View File

@ -96,7 +96,7 @@ project_domain_id = default
region_name = {{ keystone.bootstrap.region_name | default('RegionOne')}}
{% else %}
auth_type=none
endpoint_override={{ ironic_inspector_api_url }}
endpoint_override = http://{{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}:5050
{% endif %}
{% endif %}