Skip to content
Snippets Groups Projects
Commit e44ff538 authored by Eduardo Gonzalez's avatar Eduardo Gonzalez
Browse files

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
parent b51294dc
No related branches found
No related tags found
No related merge requests found
...@@ -905,6 +905,7 @@ listen memcached ...@@ -905,6 +905,7 @@ listen memcached
bind {{ kolla_internal_vip_address }}:{{ memcached_port }} bind {{ kolla_internal_vip_address }}:{{ memcached_port }}
{% for host in groups['memcached'] %} {% 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 %} 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 %} {% endfor %}
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment