From 9e324268d0c10c7c948af2ecec47a44f443250ca Mon Sep 17 00:00:00 2001
From: Eduardo Gonzalez <dabarren@gmail.com>
Date: Tue, 20 Sep 2016 17:27:31 +0200
Subject: [PATCH] Fix senlin api bind host

Change-Id: I4f24bcc69e02eaa961b5791b3986e969368c50a8
Closes-Bug: #1625691
---
 ansible/roles/senlin/templates/senlin.conf.j2 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ansible/roles/senlin/templates/senlin.conf.j2 b/ansible/roles/senlin/templates/senlin.conf.j2
index 361efda7cc..6018444d26 100644
--- a/ansible/roles/senlin/templates/senlin.conf.j2
+++ b/ansible/roles/senlin/templates/senlin.conf.j2
@@ -5,6 +5,12 @@ log_dir = /var/log/kolla/senlin
 
 transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %}
 
+{% if service_name == 'senlin-api' %}
+[senlin_api]
+bind_host = {{ api_interface_address }}
+bind_port = {{ senlin_api_port }}
+{% endif %}
+
 [authentication]
 auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}
 service_username = {{ senlin_keystone_user }}