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

41 lines
1.1 KiB
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-19 15:06:34 +03:00
"bootstrap_expect": {{ consul_servers | length }},
2026-01-07 14:27:55 +03:00
"enable_syslog": true,
"performance": {
"raft_multiplier": 1
2026-01-19 15:06:34 +03:00
},
2026-01-19 21:00:14 +03:00
"acl": {
"enabled": true,
{% if not consul_acl_bootstraped %}
"default_policy": "allow",
{% else %}
"default_policy": "deny",
"tokens": {
"agent": "FIXME"
},
{% endif %}
"down_policy": "extend-cache"
},
2026-01-19 15:06:34 +03:00
{% endif %}
"retry_join": ["{{ consul_servers | join('", "') }}"]
2026-01-07 14:27:55 +03:00
}