kolla-ansible/ansible/roles/swift/templates/object.conf.j2
James McCarthy 790c6b2a9f Adjust object-replicator heading within object.conf.j2 template.
The swift-object-auditor logs many complaints of missing
object-replicator configuration, as this section is undefined.

Move the header outside of the == 'swift-object-replicator' check,
so other services will get an empty section to stop complaints.

TrivialFix
Closes-Bug: #1637561
Change-Id: I9c8d960b0c31e448afdeaac5f3d38e1be5ff965d
2016-10-28 16:44:14 +01:00

41 lines
905 B
Django/Jinja

[DEFAULT]
bind_ip = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
bind_port = {{ swift_object_server_port }}
devices = {{ swift_devices_mount_point }}
mount_check = false
log_address = /var/lib/kolla/heka/log
log_name = {{ service_name }}
log_facility = LOG_LOCAL0
log_level = INFO
[pipeline:main]
{% if service_name == 'swift-object-expirer' %}
pipeline = proxy-server
{% else %}
pipeline = object-server
{% endif %}
[app:object-server]
use = egg:swift#object
{% if service_name == 'swift-object-auditor' %}
[object-auditor]
{% endif %}
[object-replicator]
{% if service_name == 'swift-object-replicator' %}
sync_module = {replication_ip}:{meta}:object
{% endif %}
{% if service_name == 'swift-object-updater' %}
[object-updater]
{% endif %}
{% if service_name == 'swift-object-expirer' %}
[object-expirer]
[app:proxy-server]
use = egg:swift#proxy
{% endif %}