kolla-ansible/ansible/roles/ironic/templates/ironic.conf.j2
Andrey Shestakov 3c14ea2e0a Fix configuration for ironic-conductor
Ironic API url provided for conductor.
Disabled cleaning by default.

TrivialFix
Change-Id: I36bd728e1ec672b42c4844ef6b3c9dc603a6db6b
2015-11-26 11:49:09 +00:00

42 lines
1.3 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 %}
{% if service_name == 'ironic-conductor' %}
[conductor]
api_url = http://{{ kolla_internal_address }}:{{ ironic_api_port }}
clean_nodes = false
{% 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 %}