kolla/ansible/roles/swift/templates/account.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

27 lines
617 B
Django/Jinja

[DEFAULT]
bind_ip = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
bind_port = {{ swift_account_server_port }}
devices = {{ swift_devices_mount_point }}
mount_check = false
log_name = {{ service_name }}
log_facility = LOG_LOCAL0
log_level = warning
[pipeline:main]
pipeline = account-server
[app:account-server]
use = egg:swift#account
{% if service_name == 'swift-account-auditor' %}
[account-auditor]
{% endif %}
{% if service_name == 'swift-account-replicator' %}
[account-replicator]
{% endif %}
{% if service_name == 'swift-account-reaper' %}
[account-reaper]
{% endif %}