Private
Public Access
2
0
Files
bgwaf/seb4itik/byow/roles/consul/templates/config.json

29 lines
855 B
JSON
Raw Normal View History

2026-01-07 14:27:55 +03:00
{
"log_level": "INFO",
"domain": "{{ consul_domain }}",
2026-01-19 15:06:34 +03:00
"datacenter": "{{ consul_datacenter | mandatory }}",
2026-01-07 14:27:55 +03:00
"key_file": "{{ consul_key_file }}",
"cert_file": "{{ consul_cert_file }}",
"ca_file": "{{ consul_ca_file }}",
"verify_incoming": true,
"verify_outgoing": true,
"verify_server_hostname": true,
"encrypt": "{{ consul_secret_key }}",
2026-01-19 15:06:34 +03:00
"data_dir": "/opt/consul",
{% if consul_server %}
"node_name": "{{ ansible_hostname }}",
"server": true,
2026-01-07 14:27:55 +03:00
"ui": true,
"leave_on_terminate": true,
"client_addr": "{{ consul_client_addr }}",
"bind_addr": "{{ consul_bind_addr }}",
"advertise_addr": "{{ consul_advertise_addr }}",
2026-01-20 15:16:28 +03:00
"bootstrap_expect": {{ (consul_servers | length) - 1 }},
2026-01-07 14:27:55 +03:00
"enable_syslog": true,
"performance": {
"raft_multiplier": 1
2026-01-19 15:06:34 +03:00
},
{% endif %}
"retry_join": ["{{ consul_servers | join('", "') }}"]
2026-01-07 14:27:55 +03:00
}