infrastructure/os/config/roles/consul/templates/consul.json.j2

39 lines
870 B
Text
Raw Normal View History

2019-06-01 14:02:49 +00:00
{
"data_dir": "/var/lib/consul",
2020-10-27 21:39:00 +00:00
"bind_addr": "[::]",
"advertise_addr": "{{ ipv6 }}",
2019-06-01 14:02:49 +00:00
"addresses": {
2020-10-27 21:39:00 +00:00
"dns": "[::]",
"http": "[::]"
2019-06-01 14:02:49 +00:00
},
"retry_join": [
{% for selected_host in groups['cluster_nodes']|reject("sameas", ansible_fqdn) %}{# @FIXME: Reject doesn't work #}
2020-10-27 21:39:00 +00:00
"{{ hostvars[selected_host]['ipv6'] }}" {{ "," if not loop.last else "" }}
2019-06-01 14:02:49 +00:00
{% endfor %}
],
"bootstrap_expect": 3,
"server": true,
"ui": true,
"ports": {
"dns": 53
},
"recursors": [
"{{ dns_1 }}",
"{{ dns_2 }}"
],
2019-06-01 14:02:49 +00:00
"encrypt": "{{ consul_gossip_encrypt }}",
"domain": "2.cluster.deuxfleurs.fr",
"performance": {
2021-04-04 18:04:25 +00:00
"raft_multiplier": 5,
2019-06-01 14:02:49 +00:00
"rpc_hold_timeout": "30s",
"leave_drain_time": "30s"
2021-03-07 20:36:27 +00:00
},
2021-04-04 18:04:25 +00:00
"dns_config": {
"allow_stale": true
},
2021-03-07 20:36:27 +00:00
"telemetry": {
"disable_hostname": true,
"prometheus_retention_time": "2h"
2019-06-01 14:02:49 +00:00
}
}