openstack-ansible-os_swift/templates/swift.conf.j2
Darren Birkett 2dc3514da5 Make ansible managed line in swift.conf static
The ansible-managed line includes date/time information, meaning that
the conf file that gets laid down on different hosts does not have the
same MD5 sum across all hosts. This causes swift-recon --md5 to fail.

This commit fixes the issue by adding a static comment
to the config file instead

Change-Id: Id00cd79636f43776aaaa51e2ae6d7c5eacff8d34
Partial-Bug: #1589532
2016-06-10 15:48:07 +00:00

35 lines
969 B
Django/Jinja

# Ansible managed - please don't edit this file manually
[swift-hash]
swift_hash_path_suffix = {{ swift_hash_path_suffix }}
swift_hash_path_prefix = {{ swift_hash_path_prefix }}
# Storage Policies
{% for policy in swift.storage_policies %}
{% set swift_policy_type = policy.policy.policy_type|default('replication') %}
[storage-policy:{{ policy.policy.index }}]
name = {{ policy.policy.name }}
policy_type = {{ swift_policy_type }}
{% if swift_policy_type == 'erasure_coding' %}
ec_type = {{ policy.policy.ec_type }}
ec_num_data_fragments = {{ policy.policy.ec_num_data_fragments }}
ec_num_parity_fragments = {{ policy.policy.ec_num_parity_fragments }}
ec_object_segment_size = {{ policy.policy.ec_object_segment_size }}
{% endif %}
{% if policy.policy.deprecated is defined %}
deprecated = {{ policy.policy.deprecated }}
{% endif %}
{% if policy.policy.default is defined %}
default = {{ policy.policy.default }}
{% endif %}
{% endfor %}
[swift-constraints]