kolla-ansible/ansible/roles/swift/templates/rsyncd.conf.j2

29 lines
778 B
Django/Jinja

address = {{ hostvars[inventory_hostname]['ansible_' + swift_replication_interface]['ipv4']['address'] }}
{% if inventory_hostname in groups['swift-account-server'] %}
[account]
max connections = 2
path = {{ swift_devices_mount_point }}
read only = false
use chroot = no
lock file = /var/lib/swift/lock/account.lock
{% endif %}
{% if inventory_hostname in groups['swift-container-server'] %}
[container]
max connections = 4
path = {{ swift_devices_mount_point }}
read only = false
use chroot = no
lock file = /var/lib/swift/lock/container.lock
{% endif %}
{% if inventory_hostname in groups['swift-object-server'] %}
[object]
max connections = 8
path = {{ swift_devices_mount_point }}
read only = false
use chroot = no
lock file = /var/lib/swift/lock/object.lock
{% endif %}