From 92d0391ddef468e80a528fd0dd66df1cd9f370a3 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Sat, 28 Jan 2023 19:47:00 +0300 Subject: [PATCH] Update consul_services vars --- vars/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vars/main.yml b/vars/main.yml index 7b773a478..a407795cf 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -102,30 +102,30 @@ consul_services: - name: "{{ patroni_cluster_name }}" id: "{{ patroni_cluster_name }}-master" tags: ['master'] - port: "{{ pgbouncer_listen_port }}" # or "{{ pgbouncer_listen_port }}" if pgbouncer_install: false + port: "{{ pgbouncer_listen_port }}" # or "{{ postgresql_port }}" if pgbouncer_install: false checks: - - { http: "http://{{ hostvars[inventory_hostname]['inventory_hostname'] }}:8008/master", interval: "2s" } + - { http: "http://{{ inventory_hostname }}:8008/master", interval: "2s" } - { args: ["systemctl", "status", "pgbouncer"], interval: "5s" } # comment out this check if pgbouncer_install: false - name: "{{ patroni_cluster_name }}" id: "{{ patroni_cluster_name }}-replica" tags: ['replica'] port: "{{ pgbouncer_listen_port }}" checks: - - { http: "http://{{ hostvars[inventory_hostname]['inventory_hostname'] }}:8008/replica", interval: "2s" } + - { http: "http://{{ inventory_hostname }}:8008/replica", interval: "2s" } - { args: ["systemctl", "status", "pgbouncer"], interval: "5s" } # - name: "{{ patroni_cluster_name }}" # id: "{{ patroni_cluster_name }}-sync-replica" # tags: ['sync-replica'] # port: "{{ pgbouncer_listen_port }}" # checks: -# - { http: "http://{{ hostvars[inventory_hostname]['inventory_hostname'] }}:8008/sync", interval: "2s" } +# - { http: "http://{{ inventory_hostname }}:8008/sync", interval: "2s" } # - { args: ["systemctl", "status", "pgbouncer"], interval: "5s" } # - name: "{{ patroni_cluster_name }}" # id: "{{ patroni_cluster_name }}-async-replica" # tags: ['async-replica'] # port: "{{ pgbouncer_listen_port }}" # checks: -# - { http: "http://{{ hostvars[inventory_hostname]['inventory_hostname'] }}:8008/async", interval: "2s" } +# - { http: "http://{{ inventory_hostname }}:8008/async", interval: "2s" } # - { args: ["systemctl", "status", "pgbouncer"], interval: "5s" }