diff --git a/README.md b/README.md index 9be9aa5e..32fe23d3 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 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 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 }}