openstack-ansible-os_swift/templates/rsyncd.conf.j2
Andy McCrae 82a961ed18 Let rsync max_connections be set by variables
Setup variables for the account, object & container rsync max
connections.

Defaults to the current default of 2, and allows it to be specified on a
per service (account, object, container) basis.

Change-Id: I837f7ddabbc012d1607c897bb45ae58ad9f8540a
2016-03-16 16:39:36 +00:00

26 lines
770 B
Django/Jinja

# {{ ansible_managed }}
uid = {{ swift_system_user_name }}
gid = {{ swift_system_group_name }}
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
address = {{ swift_replication_address }}
[account]
max connections = {{ swift_account_max_rsync_connections }}
path = {{ swift_vars.mount_point | default(swift.mount_point) }}
read only = false
lock file = /var/lock/account.lock
[container]
max connections = {{ swift_container_max_rsync_connections }}
path = {{ swift_vars.mount_point | default(swift.mount_point) }}
read only = false
lock file = /var/lock/container.lock
[object]
max connections = {{ swift_object_max_rsync_connections }}
path = {{ swift_vars.mount_point | default(swift.mount_point) }}
read only = false
lock file = /var/lock/object.lock