88c7ad1f09
Set host_ip to internal address for ironic-api service Change-Id: I001a422a0474e88c1433a7b3ab5e005f2b8c337c Closes-Bug: #1518336
36 lines
1.2 KiB
Django/Jinja
36 lines
1.2 KiB
Django/Jinja
[DEFAULT]
|
|
debug = {{ ironic_logging_debug }}
|
|
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 }}
|
|
|
|
[keystone_authtoken]
|
|
auth_uri = http://{{ kolla_internal_address }}:{{ keystone_public_port }}
|
|
auth_url = http://{{ kolla_internal_address }}:{{ keystone_admin_port }}
|
|
auth_plugin = password
|
|
project_domain_id = default
|
|
user_domain_id = default
|
|
project_name = service
|
|
username = {{ ironic_keystone_user }}
|
|
password = {{ ironic_keystone_password }}
|
|
|
|
[glance]
|
|
glance_host = {{ kolla_internal_address }}
|
|
|
|
[neutron]
|
|
url = http://{{ kolla_internal_address }}:{{ neutron_server_port }}
|
|
|
|
[oslo_messaging_rabbit]
|
|
rabbit_userid = {{ rabbitmq_user }}
|
|
rabbit_password = {{ rabbitmq_password }}
|
|
rabbit_ha_queues = true
|
|
rabbit_hosts = {% for host in groups['rabbitmq'] %}{{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %}
|