From: Michele Baldessari Date: Sun, 16 Oct 2016 19:57:29 +0000 (+0200) Subject: Enable haproxy statistics unix socket X-Git-Tag: opnfv-6.0.0~515^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=36c0d0a3c19446fbec88686ea9b96ffa4fc4498f;p=apex-puppet-tripleo.git Enable haproxy statistics unix socket By enabling the statistics socket we allow the collection of statistics over time for haproxy. This socket is set to "user" level, so this socket is limited to read-only. The "stats timeout" line is optional, but since the default timeout of the stats socket is 10s, we set this higher. Change-Id: I22d3ab771e981be0d2c74b60443d276973bc1639 --- diff --git a/manifests/haproxy.pp b/manifests/haproxy.pp index c4d018d..e072393 100644 --- a/manifests/haproxy.pp +++ b/manifests/haproxy.pp @@ -632,6 +632,10 @@ class tripleo::haproxy ( 'maxconn' => $haproxy_global_maxconn, 'ssl-default-bind-ciphers' => $ssl_cipher_suite, 'ssl-default-bind-options' => $ssl_options, + 'stats' => [ + 'socket /var/run/haproxy.sock mode 600 level user', + 'timeout 2m' + ], }, defaults_options => { 'mode' => 'tcp',