diff options
author | 2015-12-15 11:15:50 +0000 | |
---|---|---|
committer | 2015-12-15 11:15:50 +0000 | |
commit | 68f4d2a4cfe706c6e7194b270e061261403b1e2d (patch) | |
tree | ad22092f45cca42052a98989db90fcdb6ae31e14 /deploy/adapters/ansible/openstack/templates | |
parent | 25cf6081b5cef33aec03fe76093dd7b87d11c249 (diff) | |
parent | 3e7d82a8f6527755c8eee5788235807dbb8a3df0 (diff) |
Merge "fix some memcached configuration error"
Diffstat (limited to 'deploy/adapters/ansible/openstack/templates')
-rw-r--r-- | deploy/adapters/ansible/openstack/templates/nova.conf | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/openstack/templates/nova.conf b/deploy/adapters/ansible/openstack/templates/nova.conf index 2364132e..cec11440 100644 --- a/deploy/adapters/ansible/openstack/templates/nova.conf +++ b/deploy/adapters/ansible/openstack/templates/nova.conf @@ -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] dhcpbridge_flagfile=/etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge @@ -49,7 +55,7 @@ notify_on_state_change = vm_and_task_state notification_driver = nova.openstack.common.notifier.rpc_notifier notification_driver = ceilometer.compute.nova_notifier -memcached_servers = {{ internal_vip.ip }}:11211 +memcached_servers = {{ memcached_servers }} [database] # The SQLAlchemy connection string used to connect to the database @@ -64,6 +70,7 @@ identity_uri = http://{{ internal_vip.ip }}:35357 admin_tenant_name = service admin_user = nova admin_password = {{ NOVA_PASS }} +memcached_servers = {{ memcached_servers }} [glance] host = {{ internal_vip.ip }} |