Jakub Sokołowski bf8662b20f
add consul service definition
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-11-24 20:45:06 +01:00

16 lines
548 B
YAML

---
- name: Create Consul service definition
include_role: name=consul-service
vars:
consul_config_name: '{{ postgres_ha_service_name }}'
consul_services:
- id: '{{ postgres_ha_service_name }}'
name: '{{ postgres_ha_consul_service }}'
tags: ['postgres', 'database']
port: '{{ postgres_ha_cont_port }}'
checks:
- id: '{{ postgres_ha_service_name }}-status'
name: 'PostgreSQL DB Healthcheck'
type: 'tcp'
tcp: 'localhost:{{ postgres_ha_cont_port }}'