infra/ansible/roles/consul_server/templates/consul.hcl.j2

17 lines
504 B
Text
Raw Normal View History

2020-08-21 04:26:07 +00:00
datacenter = "{{ consul_dc }}"
2020-08-21 04:34:41 +00:00
domain = "minhas.io"
2020-08-21 04:26:07 +00:00
bind_addr = "{{ ansible_default_ipv4.address }}"
start_join = ["{{ groups['consul_server'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | join('","') }}"]
data_dir = "/opt/consul"
log_level = "INFO"
2020-08-21 04:34:41 +00:00
raft_protocol = 3
2020-08-21 04:26:07 +00:00
server = true
bootstrap_expect = 3
ui = true
addresses {
http = "0.0.0.0"
}
performance {
raft_multiplier = 1
}