openstack-ansible-os_zun/templates/systemd-docker-override.conf.j2
Dmitriy Rabotyagov 7ee1939c1c Refactor memcached_servers
This patch aims to add a prefix for memcached_server
on each role to give the ability for deployers to
override the location of memcached cluster. I.e users
wants to create a single memcached cluster with k8s
for each service.

We also add pymemcache based on [1] and fix zun-docker
systemd config.

[1] https://review.opendev.org/711429

Change-Id: Ic7b31506177ebb0f4f24eaff4db134aace5c0b1a
2020-03-25 22:26:05 +02:00

4 lines
285 B
Django/Jinja

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --group {{ zun_system_group_name }} -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock --cluster-store etcd://{% for item in groups['zun_api'] %}{{ hostvars[item]['ansible_host'] }}:2379{% if not loop.last %},{% endif %}{% endfor %}