From b3aa2d7d99b8889c3ed615ae9364372f47e06f28 Mon Sep 17 00:00:00 2001 From: Yifei Xue Date: Wed, 25 May 2016 17:09:01 +0800 Subject: Set "memcached_servers" in aodh.conf JIRA: COMPASS-399 Change-Id: I821aceb0430b071814591781985ee7a4f22a7091 Signed-off-by: Yifei Xue --- .../ansible/openstack_mitaka/roles/aodh/templates/aodh.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'deploy/adapters') diff --git a/deploy/adapters/ansible/openstack_mitaka/roles/aodh/templates/aodh.conf.j2 b/deploy/adapters/ansible/openstack_mitaka/roles/aodh/templates/aodh.conf.j2 index eac6e5bd..85512ed5 100644 --- a/deploy/adapters/ansible/openstack_mitaka/roles/aodh/templates/aodh.conf.j2 +++ b/deploy/adapters/ansible/openstack_mitaka/roles/aodh/templates/aodh.conf.j2 @@ -1,3 +1,9 @@ +{% set memcached_servers = [] %} +{% for host in haproxy_hosts.values() %} +{% set _ = memcached_servers.append('%s:11211'% host) %} +{% endfor %} +{% set memcached_servers = memcached_servers|join(',') %} + [DEFAULT] bind_host = {{ internal_ip }} bind_port = 8042 -- cgit 1.2.3-korg