From c879b1f2711db6aefe7dbf88b0b08d3a32e1e02a Mon Sep 17 00:00:00 2001 From: James McCarthy Date: Tue, 6 Oct 2015 10:08:40 +0100 Subject: [PATCH] Updated haproxy config to include swift api Closes-bug: #1503197 backport: liberty Change-Id: I5c233298312dabeb43efa4821855c77fd81aae67 --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 0c8d59c912..b2a0db1c07 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -149,3 +149,11 @@ listen ironic_api server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ ironic_api_port }} check inter 2000 rise 2 fall 5 {% endfor %} {% endif %} + +{% if enable_swift | bool %} +listen swift_api + bind {{ kolla_internal_address}}:{{ swift_proxy_server_port }} +{% for host in groups['swift-proxy-server'] %} + server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ swift_proxy_server_port }} check inter 2000 rise 2 fall 5 +{% endfor %} +{% endif %}