diff options
author | Yifei Xue <xueyifei@huawei.com> | 2016-05-25 17:09:01 +0800 |
---|---|---|
committer | Yifei Xue <xueyifei@huawei.com> | 2016-05-25 17:09:01 +0800 |
commit | b3aa2d7d99b8889c3ed615ae9364372f47e06f28 (patch) | |
tree | 3779754f3d24e43206fa4a37444ae897e879c830 /deploy/adapters/ansible/openstack_mitaka/roles | |
parent | 12d4586098effd082bc3f927c1a41cbc85301285 (diff) |
Set "memcached_servers" in aodh.conf
JIRA: COMPASS-399
Change-Id: I821aceb0430b071814591781985ee7a4f22a7091
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack_mitaka/roles')
-rw-r--r-- | deploy/adapters/ansible/openstack_mitaka/roles/aodh/templates/aodh.conf.j2 | 6 |
1 files changed, 6 insertions, 0 deletions
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 |