kolla/ansible/roles/swift/templates/object.conf.j2
SamYaple ed82afa8e9 Simplify config creation
Convert config creation from a playbook to an action_plugin. This
reduces the complexity and confusion while retaining the same augment
structure and flexibility.

This allows us to remove the 0-byte files as requirements. They will
still be used if they are present (this means we require additional
documentation around them).

DocImpact
Closes-Bug: #1528430
Change-Id: I2c789f6be9f195c7771ca093a6d59499564b4740
2015-12-22 04:28:53 +00:00

39 lines
825 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_name = {{ service_name }}
log_facility = LOG_LOCAL0
log_level = warning
[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 %}
{% if service_name == 'swift-object-replicator' %}
[object-replicator]
{% 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 %}