From ff96b6f1e522497ddd821bfa8cf039e3b6e41e25 Mon Sep 17 00:00:00 2001 From: Nicolas KAROLAK <nicolas@karolak.fr> Date: Fri, 24 Apr 2020 16:02:40 +0000 Subject: [PATCH] fix haproxy config --- inventories/example-ha/group_vars/all.yml | 2 +- playbooks/postgres-ha.yml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/inventories/example-ha/group_vars/all.yml b/inventories/example-ha/group_vars/all.yml index ee3bc218..e1ae2554 100644 --- a/inventories/example-ha/group_vars/all.yml +++ b/inventories/example-ha/group_vars/all.yml @@ -18,7 +18,7 @@ hap_config_listen: bind localhost:54321 default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions option tcp-check - tcp-check expect string (primary|standby) + tcp-check expect rstring (primary|standby) maxconn 500 server pg1 192.168.122.1:5432 maxconn 500 check port 8543 server pg2 192.168.122.2:5432 maxconn 500 check port 8543 diff --git a/playbooks/postgres-ha.yml b/playbooks/postgres-ha.yml index 70295a8d..ba4b538a 100755 --- a/playbooks/postgres-ha.yml +++ b/playbooks/postgres-ha.yml @@ -22,9 +22,7 @@ - postgres-ha - name: POSTGRES HA CLIENTS - hosts: - - mediaserver - - mirismanager + hosts: mediaserver tags: postgres pre_tasks: - name: check that haproxy is configured -- GitLab