itamae/cookbooks/consul/templates/etc/consul.d/consul-server.hcl.erb

44 lines
861 B
Plaintext
Raw Permalink Normal View History

2024-02-11 09:55:25 +00:00
datacenter = "dc1"
data_dir = "/opt/consul"
2020-11-22 08:25:09 +00:00
2024-02-11 09:55:25 +00:00
encrypt = "<%= @encrypt %>"
verify_incoming = true
verify_outgoing = true
verify_server_hostname = true
2020-11-22 08:25:09 +00:00
2024-02-11 09:55:25 +00:00
ca_file = "/etc/consul.d/certs/consul-agent-ca.pem"
2020-11-22 08:25:09 +00:00
2024-02-11 09:55:25 +00:00
bind_addr = "<%= @ipaddr %>"
client_addr = "0.0.0.0"
advertise_addr = "<%= @ipaddr %>"
2020-11-22 08:25:09 +00:00
2024-02-11 09:55:25 +00:00
performance {
raft_multiplier = 1
}
2020-11-22 08:25:09 +00:00
disable_remote_exec = false
disable_update_check = false
enable_local_script_checks = true
2024-02-11 09:55:25 +00:00
log_file = "/var/log/consul/"
2020-11-22 08:25:09 +00:00
log_rotate_max_files = -1
2024-02-11 09:55:25 +00:00
log_level = "INFO"
log_json = false
log_rotate_bytes = 1000000
enable_central_service_config = true
ports {
grpc_tls = 8502
}
connect {
enabled = true
}
telemetry {
prometheus_retention_time = "24h"
disable_hostname = true
}
retry_join = [<%= @manager_hosts %>]
2020-11-22 08:25:09 +00:00
rejoin_after_leave = true