ansible-role-postgresql/templates/consul.d/postgres.hcl.j2
vincent 1fdff1c48b
Some checks failed
continuous-integration/drone/push Build is failing
feat: add consul service
2023-10-31 20:11:28 +01:00

17 lines
418 B
Django/Jinja

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"
}
}