2020-08-30 00:22:52 +00:00
|
|
|
datacenter = "{{ main_dc_name }}"
|
2020-08-30 07:33:20 +00:00
|
|
|
primary_datacenter = "{{ main_dc_name }}"
|
2020-08-30 00:22:52 +00:00
|
|
|
domain = "{{ consul_domain }}"
|
2020-08-30 07:33:20 +00:00
|
|
|
node_name = "{{ inventory_hostname_short }}"
|
2020-08-27 20:29:53 +00:00
|
|
|
|
2022-11-01 20:02:59 +00:00
|
|
|
encrypt = "{{ lookup('hashi_vault', 'secret=kv/data/consul:data ca_cert=/etc/pki/certs/MaskedName_Root_CA.crt')['gossip'] }}"
|
2020-08-27 20:29:53 +00:00
|
|
|
|
|
|
|
verify_incoming = false
|
|
|
|
verify_outgoing = true
|
|
|
|
verify_server_hostname = true
|
2020-08-30 00:22:52 +00:00
|
|
|
ca_file = "/etc/pki/certs/{{ vault_ca_cert_name }}"
|
2020-08-27 20:29:53 +00:00
|
|
|
|
|
|
|
auto_encrypt {
|
|
|
|
tls = true
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
addresses {
|
|
|
|
http = "0.0.0.0"
|
|
|
|
}
|
|
|
|
|
2020-09-21 01:42:35 +00:00
|
|
|
enable_local_script_checks = true
|
|
|
|
|
2020-08-27 20:29:53 +00:00
|
|
|
acl {
|
|
|
|
enabled = true
|
|
|
|
default_policy = "deny"
|
|
|
|
enable_token_persistence = true
|
|
|
|
tokens {
|
2022-11-01 20:02:59 +00:00
|
|
|
default = "{{ lookup('hashi_vault', 'secret=kv/data/consul:data ca_cert=/etc/pki/certs/MaskedName_Root_CA.crt')['server-acl-token'] }}"
|
2020-08-27 20:29:53 +00:00
|
|
|
}
|
|
|
|
}
|