openstack-ansible-os_swift/templates/container-sync-realms.conf.j2
Andy McCrae ef40930533 Add ability to set up Swift container-sync realms
This will allow the specification of container-sync realms via the
swift_container_sync_realms variable (documented in the
defaults/main.yml within the os_swift role).

Creating a conf file that is then used to enable and utilise
container-sync Realms within Swift.

Change-Id: Icf71d008765ff83743f6ab28ef0cea29943e362e
2016-03-24 13:54:09 +00:00

13 lines
295 B
Django/Jinja

# {{ ansible_managed }}
{% for realm in swift_container_sync_realms %}
[{{ realm.name }}]
key = {{ realm.key1 }}
{% if realm.key2 is defined %}
key2 = {{ realm.key2 }}
{% endif %}
cluster_clustername1 = {{ realm.clustername1 }}
cluster_clustername2 = {{ realm.clustername2 }}
{% endfor %}