Update to 2022-08-01 19:00

This commit is contained in:
Daniel Berteaud
2022-08-01 19:00:22 +02:00
parent d168e21fb8
commit 8179fd8b6b
3 changed files with 36 additions and 8 deletions

View File

@@ -13,6 +13,12 @@ datacenter = "{{ consul_conf.datacenter }}"
node_name = {{ consul_conf.node_name }}
{% endif %}
node_meta {
{% for meta in consul_conf.node_meta.keys() | list %}
{{ meta }} = "{{ consul_conf.node_meta[meta] }}"
{% endfor %}
}
ports {
{% for service in consul_services.keys() | list %}
{% if service not in ['sidecar', 'expose'] and consul_services[service].port is defined %}
@@ -24,19 +30,19 @@ ports {
{% endfor %}
}
bootstrap_expect = {{ consul_conf.bootstrap_expect }}
performance {
raft_multiplier = {{ consul_conf.performance.raft_multiplier }}
}
retry_join = [
{% for server in consul_servers %}
"{{ server }}",
{% endfor %}
]
server = {{ consul_conf.server | ternary('true', 'false') }}
{% if consul_conf.server %}
server = true
bootstrap_expect = {{ consul_conf.bootstrap_expect }}
performance {
raft_multiplier = {{ consul_conf.performance.raft_multiplier }}
}
{% endif %}
{% if consul_conf.encrypt is defined %}
encrypt = "{{ consul_conf.encrypt }}"
@@ -45,3 +51,13 @@ encrypt = "{{ consul_conf.encrypt }}"
ui_config {
enabled = {{ consul_conf.ui_config.enabled | ternary('true', 'false') }}
}
recursors = [
{% for dns in consul_conf.recursors %}
"{{ dns }}",
{% endfor %}
]
telemetry {
prometheus_retention_time = "{{ consul_conf.telemetry.prometheus_retention_time }}"
}