kolla-ansible/ansible/roles/swift/templates/swift-object-replicator.json.j2
Alexis Deberg 5f4c71ee0f Update swift templates to support swift_extra_ring_files
Change-Id: Ie594f6cdbe332d64d3461d84da730111d0db5cf1
Related-Bug: #1844752
2019-10-24 12:31:43 -04:00

45 lines
1.3 KiB
Django/Jinja

{
"command": "swift-object-replicator /etc/swift/object-replicator.conf --verbose",
"config_files": [
{
"source": "/var/lib/kolla/swift/container.ring.gz",
"dest": "/etc/swift/container.ring.gz",
"owner": "swift",
"perm": "0640"
},
{
"source": "/var/lib/kolla/swift/object.ring.gz",
"dest": "/etc/swift/object.ring.gz",
"owner": "swift",
"perm": "0640"
},
{% for ring in swift_extra_ring_files %}
{
"source": "/var/lib/kolla/swift/{{ ring }}",
"dest": "/etc/swift/{{ ring }}",
"owner": "swift",
"perm": "0640"
},
{% endfor %}
{
"source": "{{ container_config_directory }}/swift.conf",
"dest": "/etc/swift/swift.conf",
"owner": "swift",
"perm": "0640"
},
{
"source": "{{ container_config_directory }}/object-replicator.conf",
"dest": "/etc/swift/object-replicator.conf",
"owner": "swift",
"perm": "0640"
},
{
"source": "{{ container_config_directory }}/policy.json",
"dest": "/etc/swift/policy.json",
"owner": "swift",
"perm": "0600",
"optional": true
}
]
}