![Scott Solkhon](/assets/img/avatar_default.png)
This commit adds the necessary configuration to the Swift account, container and object configuration files to enable the Swift recon cli. In order to give the object server on each Swift host access to the recon files, a Docker volume is mounted into each container which generates them. The volume is then mounted read only into the object server container. Note that multiple containers append to the same file. This should not be a problem since Swift uses a lock when appending. Change-Id: I343d8f45a78ebc3c11ed0c68fe8bec24f9ea7929 Co-authored-by: Doug Szumski <doug@stackhpc.com>
41 lines
1.2 KiB
Django/Jinja
41 lines
1.2 KiB
Django/Jinja
{% set interface = swift_replication_interface if 'replicat' in service_name else swift_storage_interface %}
|
|
[DEFAULT]
|
|
bind_ip = {{ hostvars[inventory_hostname]['ansible_' + interface]['ipv4']['address'] }}
|
|
bind_port = {{ swift_account_server_port }}
|
|
devices = {{ swift_devices_mount_point }}
|
|
mount_check = false
|
|
log_udp_host = {{ syslog_server }}
|
|
log_udp_port = {{ syslog_udp_port }}
|
|
log_name = {{ service_name }}
|
|
log_facility = {{ syslog_swift_facility }}
|
|
log_level = {{ swift_log_level }}
|
|
workers = {{ openstack_service_workers }}
|
|
|
|
[pipeline:main]
|
|
pipeline = {% if enable_swift_recon %}recon {% endif %}account-server
|
|
|
|
{% if enable_swift_recon %}
|
|
[filter:recon]
|
|
use = egg:swift#recon
|
|
recon_cache_path = /var/cache/swift
|
|
{% endif %}
|
|
|
|
[app:account-server]
|
|
use = egg:swift#account
|
|
{% if swift_has_replication_network %}
|
|
replication_server = {{ service_name == 'swift-account-replication-server' }}
|
|
{% endif %}
|
|
|
|
{% if service_name == 'swift-account-auditor' %}
|
|
[account-auditor]
|
|
{% endif %}
|
|
|
|
{% if service_name == 'swift-account-replicator' %}
|
|
[account-replicator]
|
|
rsync_module = {replication_ip}:{meta}:account
|
|
{% endif %}
|
|
|
|
{% if service_name == 'swift-account-reaper' %}
|
|
[account-reaper]
|
|
{% endif %}
|