mirror of
https://github.com/status-im/infra-role-postgres-ha.git
synced 2025-02-23 03:48:20 +00:00
16 lines
548 B
YAML
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 }}'
|