27 lines
810 B
JSON
27 lines
810 B
JSON
|
|
{
|
||
|
|
"log_level": "INFO",
|
||
|
|
"node_name": "{{ ansible_hostname }}",
|
||
|
|
"domain": "{{ consul_domain }}",
|
||
|
|
"server": true,
|
||
|
|
"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 }}",
|
||
|
|
"ui": true,
|
||
|
|
"leave_on_terminate": true,
|
||
|
|
"data_dir": "/opt/consul",
|
||
|
|
"datacenter": "{{ consul_datacenter | mandatory }}",
|
||
|
|
"client_addr": "{{ consul_client_addr }}",
|
||
|
|
"bind_addr": "{{ consul_bind_addr }}",
|
||
|
|
"advertise_addr": "{{ consul_advertise_addr }}",
|
||
|
|
"bootstrap_expect": {{ consul_nodes | length }},
|
||
|
|
"retry_join": ["{{ consul_nodes | join('", "') }}"],
|
||
|
|
"enable_syslog": true,
|
||
|
|
"performance": {
|
||
|
|
"raft_multiplier": 1
|
||
|
|
}
|
||
|
|
}
|