From e44ff538b7ea4058ccc67926bf6c8adede64a1c8 Mon Sep 17 00:00:00 2001 From: Eduardo Gonzalez Date: Tue, 23 Jan 2018 12:08:44 +0100 Subject: [PATCH] Fix haproxy with memcached enabled Haproxy keeps restarting due memcached servers are writen in a single line. adds a empty line in the for so each server is in its line Change-Id: I763a23de7f70e9ebe543b935b175e675ec774f9a --- ansible/roles/haproxy/templates/haproxy.cfg.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index 24a08f78d9..b06f01367a 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -905,6 +905,7 @@ listen memcached bind {{ kolla_internal_vip_address }}:{{ memcached_port }} {% for host in groups['memcached'] %} server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }} check inter 2000 rise 2 fall 5 {% if not loop.first %}backup{% endif %} + {% endfor %} {% endif %}