Fix ironic-api listen address

Set host_ip to internal address for ironic-api service

Change-Id: I001a422a0474e88c1433a7b3ab5e005f2b8c337c
Closes-Bug: #1518336
This commit is contained in:
Andrey Shestakov 2015-11-20 16:58:37 +02:00
parent 8dd2d97c13
commit 88c7ad1f09

View File

@ -4,6 +4,11 @@ verbose = {{ ironic_logging_verbose }}
admin_token = {{ keystone_admin_token }}
{% if service_name == 'ironic-api' %}
[api]
host_ip = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
{% endif %}
[database]
connection = mysql://{{ ironic_database_user }}:{{ ironic_database_password }}@{{ ironic_database_address }}/{{ ironic_database_name }}