Open gothicx opened 8 years ago
--- LAN/modules/rsyslog/manifests/init.pp 2016-04-26 14:24:18.913197514 +0200 +++ TestLAN/modules/rsyslog/manifests/init.pp 2016-04-26 14:29:27.182061341 +0200 @@ -31,6 +31,7 @@ $daemon = 'USE_DEFAULTS', $daemon_ensure = 'running', $daemon_enable = true, + $msg_reduction = false, $is_log_server = false, $log_dir = '/srv/logs', $log_dir_owner = 'root', --- LAN/modules/rsyslog/templates/rsyslog.conf.erb 2016-04-26 14:31:45.396350878 +0200 +++ TestLAN/modules/rsyslog/templates/rsyslog.conf.erb 2016-04-26 14:30:48.156816848 +0200 @@ -57,6 +57,11 @@ <% end -%> <% end -%> +<% if @msg_reduction -%> +# Filter duplicated messages +$RepeatedMsgReduction on +<% end -%> + # File syncing capability is disabled by default. This feature is usually not required, # not useful and an extreme performance hit #$ActionFileEnableSync on
Thank you!
Could you please submit a pull request?
Done. How to do a pull request of two files at the same time ?