From 8db18241cb2830d1f158a301f1a0de8b23d42c37 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 7 Oct 2019 09:22:24 +0100 Subject: [PATCH] Fix swift-proxy-server memcached configuration Currently, swift-proxy config uses hosts in the swift-proxy-server group to generate the list of memcached servers. However, memcached is deployed to hosts in the memcached group. This change fixes the memcached_servers option for swift-proxy to be the same as other services. Change-Id: Ib850a1bb2a504ac3e1396846ca3f1d9a30e8fca0 Closes-Bug: #1774313 (cherry picked from commit 3488479d06bc9fc39058532d29229b67f25d4ec0) --- ansible/roles/swift/templates/proxy-server.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/swift/templates/proxy-server.conf.j2 b/ansible/roles/swift/templates/proxy-server.conf.j2 index c842c556a8..75da3becd6 100644 --- a/ansible/roles/swift/templates/proxy-server.conf.j2 +++ b/ansible/roles/swift/templates/proxy-server.conf.j2 @@ -22,7 +22,7 @@ use = egg:swift#tempurl [filter:cache] use = egg:swift#memcache -memcache_servers = {% for host in groups['swift-proxy-server'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %} +memcache_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %} [filter:catch_errors] use = egg:swift#catch_errors