mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 08:15:54 +02:00
Update to 2024-04-11 00:02
This commit is contained in:
@@ -41,6 +41,40 @@ performance {
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% if consul_conf.raft_logstore is defined %}
|
||||
raft_logstore {
|
||||
{% for key in ['backend'] %}
|
||||
{% if consul_conf.raft_logstore[key] is defined %}
|
||||
{{ key }} = "{{ consul_conf.raft_logstore[key] }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if consul_conf.raft_logstore.disable_log_cache is defined %}
|
||||
disable_log_cache = {{ consul_conf.raft_logstore.disable_log_cache | ternary('true', 'false') }}
|
||||
{% endif %}
|
||||
{% if consul_conf.raft_logstore.boltdb is defined and consul_conf.raft_logstore.boltdb.no_freelist_sync is defined %}
|
||||
boltdb {
|
||||
no_freelist_sync = {{ consul_conf.raft_logstore.boltdb.no_freelist_sync | ternary('true', 'false') }}
|
||||
}
|
||||
{% endif %}
|
||||
{% if consul_conf.raft_logstore.wal is defined and consul_conf.raft_logstore.wal.segment_size_mb is defined %}
|
||||
wal {
|
||||
segment_size_mb = {{ consul_conf.raft_logstore.wal.segment_size_mb }}
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% for key in ['raft_protocol', 'raft_snapshot_interval'] %}
|
||||
{% if consul_conf[key] is defined %}
|
||||
{{ key }} = "{{ consul_conf[key] }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for key in ['raft_snapshot_threshold', 'raft_trailing_logs'] %}
|
||||
{% if consul_conf.raft_logstore[key] is defined %}
|
||||
{{ key }} = {{ consul_conf.raft_logstore[key] }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if consul_conf.encrypt is defined %}
|
||||
encrypt = "{{ consul_conf.encrypt }}"
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user