ansible-role-postgresql/templates/consul.d/postgres.hcl.j2

17 lines
418 B
Plaintext
Raw Normal View History

2023-10-31 19:11:28 +00:00
service {
name = "{{ postgres_consul_service_name }}"
id = "{{ postgres_consul_service_name }}"
port = 5432
tags = ["{{postgres_consul_tag}}"]
check
{
id = "check-{{ postgres_consul_service_name }}",
name = "{{ postgres_consul_service_name }} status check",
service_id = "{{ postgres_consul_service_name }}",
tcp = "localhost:5432",
interval = "5s",
timeout = "5s"
}
}