From 3c14ea2e0a6fede47984f95cf5c30a8e707d9df2 Mon Sep 17 00:00:00 2001 From: Andrey Shestakov Date: Thu, 26 Nov 2015 13:28:13 +0200 Subject: [PATCH] Fix configuration for ironic-conductor Ironic API url provided for conductor. Disabled cleaning by default. TrivialFix Change-Id: I36bd728e1ec672b42c4844ef6b3c9dc603a6db6b --- ansible/roles/ironic/templates/ironic.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/ironic/templates/ironic.conf.j2 b/ansible/roles/ironic/templates/ironic.conf.j2 index 63374c4085..2fca544fc7 100644 --- a/ansible/roles/ironic/templates/ironic.conf.j2 +++ b/ansible/roles/ironic/templates/ironic.conf.j2 @@ -9,6 +9,12 @@ admin_token = {{ keystone_admin_token }} 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 }}