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

17 lines
504 B
Django/Jinja

datacenter = "{{ consul_dc }}"
domain = "minhas.io"
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"
raft_protocol = 3
server = true
bootstrap_expect = 3
ui = true
addresses {
http = "0.0.0.0"
}
performance {
raft_multiplier = 1
}