From 968c44964bc28dec693632c30763f3a7a41f5ff4 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 26 Apr 2019 09:26:47 -0400 Subject: [PATCH] Updated ssh check in haproxy for gitea --- roles/haproxy/templates/haproxy.cfg.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/haproxy/templates/haproxy.cfg.j2 b/roles/haproxy/templates/haproxy.cfg.j2 index 21a8c8c..62d2d98 100644 --- a/roles/haproxy/templates/haproxy.cfg.j2 +++ b/roles/haproxy/templates/haproxy.cfg.j2 @@ -50,8 +50,9 @@ listen kubernetes listen gitea bind *:2222 + tcp-check expect string SSH-2.0- mode tcp balance roundrobin {% for node in groups['kube-workers'] %} - server {{node}} {{ hostvars[node]['ansible_host'] }}:2222 check fall 3 inter 3s rise 2 + server {{node}} {{ hostvars[node]['ansible_host'] }}:2222 check {% endfor %}