From c23c6f59deb8a460c819fe6453271a864d2b2706 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Fri, 14 Aug 2015 17:24:33 +0100 Subject: [PATCH] Correct binding logic in haproxy configuration This patch corrects the bind logic in the haproxy configuration to ensure that the keystone haproxy configurations are correctly configured to bind to the right address. Change-Id: I10ca2a4d96de3af418549b83f4c820db1867d731 Closes-Bug: #1485042 --- playbooks/vars/configs/haproxy_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/vars/configs/haproxy_config.yml b/playbooks/vars/configs/haproxy_config.yml index 43dada6539..8f14a20a03 100644 --- a/playbooks/vars/configs/haproxy_config.yml +++ b/playbooks/vars/configs/haproxy_config.yml @@ -77,7 +77,7 @@ haproxy_service_configs: - service: haproxy_service_name: keystone_service haproxy_backend_nodes: "{{ groups['keystone_all'] }}" - haproxy_bind: "{% if internal_lb_vip_address != external_lb_vip_address %}{{ external_lb_vip_address }}{% else %}*{% endif %}" + haproxy_bind: "{% if internal_lb_vip_address == external_lb_vip_address %}*{% else %}{{ external_lb_vip_address }}{% endif %}" haproxy_port: 5000 haproxy_ssl: "{% if haproxy_ssl | bool and keystone_service_publicuri_proto == 'https' %}true{% else %}false{% endif %}" haproxy_balance_type: http