aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/haproxy.pp
diff options
context:
space:
mode:
authorMichele Baldessari <michele@acksyn.org>2016-10-16 21:57:29 +0200
committerMichele Baldessari <michele@acksyn.org>2016-10-16 21:57:29 +0200
commit36c0d0a3c19446fbec88686ea9b96ffa4fc4498f (patch)
treebd0a97d1dd8c5f285430f973e20dd6c3519172a7 /manifests/haproxy.pp
parent97b2da92a2c0d268e5946178388e27bd2f30bc2f (diff)
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
Diffstat (limited to 'manifests/haproxy.pp')
-rw-r--r--manifests/haproxy.pp4
1 files changed, 4 insertions, 0 deletions
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',