From 286839050382ca4cce5858dff2d4bbfb0c251997 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Tue, 25 Aug 2015 07:41:13 +0000 Subject: [PATCH] Update Haproxy for Horizon Change-Id: I725efca9f26b73abd855e6fc90fc1694c4a9d22a Parially-Implements: blueprint ansible-horizon --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 257989bd38..128e1ff961 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -86,6 +86,12 @@ listen neutron_server server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ neutron_server_port }} check inter 2000 rise 2 fall 5 {% endfor %} +listen horizon + bind {{ kolla_internal_address }}:80 +{% for host in groups['horizon'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:80 check inter 2000 rise 2 fall 5 +{% endfor %} + listen cinder_api bind {{ kolla_internal_address }}:{{ cinder_api_port }} {% for host in groups['cinder-api'] %}