Merge "Add cache configuration for ceilometer project"

This commit is contained in:
Zuul 2018-12-12 09:09:15 +00:00 committed by Gerrit Code Review
commit 9c73d4d8e4
1 changed files with 5 additions and 0 deletions

View File

@ -47,3 +47,8 @@ connection_url = {{ xenserver_connect_protocol }}://{{ xenserver_himn_ip }}
connection_username = {{ xenserver_username }}
connection_password = {{ xenserver_password }}
{% endif %}
[cache]
backend = oslo_cache.memcache_pool
enabled = True
memcache_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}