Skip to content
Snippets Groups Projects
Commit ff96b6f1 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix haproxy config

parent d9419976
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment