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

52 lines
952 B
Plaintext
Raw Permalink Normal View History

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