From 09122aee03595a0ddac8f1d4d4247c0bba355828 Mon Sep 17 00:00:00 2001 From: Olivier JAN Date: Fri, 11 Aug 2017 11:55:59 +0200 Subject: [PATCH 1/3] update: log length --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2cb766f5..08c49144 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Set up (the latest version of) [HAProxy](http://www.haproxy.org/) in Ubuntu syst * `haproxy_global_log.{n}.level`: [optional]: Can be specified to filter outgoing messages (e.g. `notice`) * `haproxy_global_log.{n}.minlevel`: [optional]: Can be specified to filter outgoing messages (e.g. `notice`) * `haproxy_global_log.{n}.format`: [optional]: Specifies the log format string to use for traffic logs (e.g. `%{+Q}o\ %t\ %s\ %{-Q}r`) +* `haproxy_global_log.{n}.length`: [optional]: Can be specified to message length in log (e.g. `2048`) * `haproxy_global_chroot`: [optional]: Changes current directory to `` and performs a `chroot()` there before dropping privileges * `haproxy_global_stats`: [default: See `defaults/main.yml`]: Stats declarations * `haproxy_global_stats.sockets`: [default: `[{listen: /run/haproxy/admin.sock }}"}]`]: Sockets declarations From f0834b7f607e80590161c63458883f2b13058c3d Mon Sep 17 00:00:00 2001 From: Olivier JAN Date: Fri, 11 Aug 2017 11:56:40 +0200 Subject: [PATCH 2/3] fix: missing word --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 08c49144..279a3959 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Set up (the latest version of) [HAProxy](http://www.haproxy.org/) in Ubuntu syst * `haproxy_global_log.{n}.level`: [optional]: Can be specified to filter outgoing messages (e.g. `notice`) * `haproxy_global_log.{n}.minlevel`: [optional]: Can be specified to filter outgoing messages (e.g. `notice`) * `haproxy_global_log.{n}.format`: [optional]: Specifies the log format string to use for traffic logs (e.g. `%{+Q}o\ %t\ %s\ %{-Q}r`) -* `haproxy_global_log.{n}.length`: [optional]: Can be specified to message length in log (e.g. `2048`) +* `haproxy_global_log.{n}.length`: [optional]: Can be specified to adjust message length in log (e.g. `2048`) * `haproxy_global_chroot`: [optional]: Changes current directory to `` and performs a `chroot()` there before dropping privileges * `haproxy_global_stats`: [default: See `defaults/main.yml`]: Stats declarations * `haproxy_global_stats.sockets`: [default: `[{listen: /run/haproxy/admin.sock }}"}]`]: Sockets declarations From e70e6738c9bdc7671cb69861652153c7bd645627 Mon Sep 17 00:00:00 2001 From: Olivier JAN Date: Fri, 11 Aug 2017 11:57:58 +0200 Subject: [PATCH 3/3] update: log length --- templates/etc/haproxy/global.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/haproxy/global.cfg.j2 b/templates/etc/haproxy/global.cfg.j2 index 6543b96a..6474cdbd 100644 --- a/templates/etc/haproxy/global.cfg.j2 +++ b/templates/etc/haproxy/global.cfg.j2 @@ -1,6 +1,6 @@ {% if haproxy_global_log != false %} {% for log in haproxy_global_log %} - log {{ log.address }} {{ log.facility }}{% if log.level is defined %} {{log.level }}{% endif %}{% if log.minlevel is defined %} {{ log.minlevel }}{% endif %} + log {{ log.address }}{% if log.length is defined %} len {{log.length }}{% endif %} {{ log.facility }}{% if log.level is defined %} {{log.level }}{% endif %}{% if log.minlevel is defined %} {{ log.minlevel }}{% endif %} {% if log.format is defined %} log-format {{ log.format }}