Merge pull request #30 from atengler/feature/pgsql-proxy

PgSQL proxy
diff --git a/haproxy/files/haproxy.cfg b/haproxy/files/haproxy.cfg
index 4266f73..eb16931 100644
--- a/haproxy/files/haproxy.cfg
+++ b/haproxy/files/haproxy.cfg
@@ -85,6 +85,16 @@
   timeout client  28801s
   timeout server  28801s
   option mysql-check user haproxy
+  {%- elif listen.get('type', None) == 'pgsql' %}
+  balance leastconn
+  mode tcp
+  option httpchk
+  option tcplog
+  option clitcpka
+  option srvtcpka
+  timeout client  28801s
+  timeout server  28801s
+  option pgsql-check user postgres
   {%- elif listen.get('type', None) == 'horizon' %}
   balance  source
   capture  cookie vgnvisitor= len 32