2019-03-08 15:33:12 +00:00
|
|
|
address = {{ hostvars[inventory_hostname]['ansible_' + swift_replication_interface]['ipv4']['address'] }}
|
2015-09-03 15:44:31 +00:00
|
|
|
|
|
|
|
{% if inventory_hostname in groups['swift-account-server'] %}
|
|
|
|
[account]
|
|
|
|
max connections = 2
|
|
|
|
path = {{ swift_devices_mount_point }}
|
|
|
|
read only = false
|
2017-11-24 14:28:30 +00:00
|
|
|
use chroot = no
|
|
|
|
lock file = /var/lib/swift/lock/account.lock
|
2015-09-03 15:44:31 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if inventory_hostname in groups['swift-container-server'] %}
|
|
|
|
[container]
|
|
|
|
max connections = 4
|
|
|
|
path = {{ swift_devices_mount_point }}
|
|
|
|
read only = false
|
2017-11-24 14:28:30 +00:00
|
|
|
use chroot = no
|
|
|
|
lock file = /var/lib/swift/lock/container.lock
|
2015-09-03 15:44:31 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if inventory_hostname in groups['swift-object-server'] %}
|
|
|
|
[object]
|
|
|
|
max connections = 8
|
|
|
|
path = {{ swift_devices_mount_point }}
|
|
|
|
read only = false
|
2017-11-24 14:28:30 +00:00
|
|
|
use chroot = no
|
|
|
|
lock file = /var/lib/swift/lock/object.lock
|
2015-09-03 15:44:31 +00:00
|
|
|
{% endif %}
|