From 70d1dcb3974a76de0e7e46c9996896b0b7b3174e Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang <zhang.lei.fly@gmail.com> Date: Tue, 14 Feb 2017 20:22:38 +0800 Subject: [PATCH] Fix haproxy configure for external placement api listen Need listen on external ip address rather then internal. Change-Id: Ic1b8823b97e52793088cf1f82625107c69ec345b --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 6fa01f8ae5..fbf0ec5912 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -166,7 +166,7 @@ listen nova_metadata_external {% endfor %} listen placement_api_external - bind {{ kolla_internal_vip_address }}:{{ placement_api_port }} + bind {{ kolla_external_vip_address }}:{{ placement_api_port }} http-request del-header X-Forwarded-Proto http-request set-header X-Forwarded-Proto https if { ssl_fc } {% for host in groups['placement-api'] %}