Skip to content
Snippets Groups Projects
Commit 29cf8bab authored by Adam Harwell's avatar Adam Harwell
Browse files

Fix haproxy server config for memcached backends

Change-Id: I22a46b7c61f9ea4f449bc68a244caed2f6705d96
parent eaa9815a
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ memcached_services:
####################
# HAProxy
####################
haproxy_members: "{% for host in groups['memcached'] %}server {{ host }} {{ host }}:{{ memcached_port }} check inter 2000 rise 2 fall 5{% if not loop.first %} backup{% endif %};{% endfor %}"
haproxy_members: "{% 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 %}"
####################
# Docker
......
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