Skip to content

Commit 0b08a3b

Browse files
committed
move MaxMessageSize to top of rsyslog.conf, fixes #287
1 parent aed0b0a commit 0b08a3b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

templates/rsyslog.conf.erb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# file is managed by puppet
1+
#
2+
# File is managed by puppet
3+
#
4+
$MaxMessageSize <%= scope.lookupvar('rsyslog::max_message_size') %>
25
<% if scope.lookupvar('rsyslog::preserve_fqdn') -%>
36
$PreserveFQDN on
47
<% end -%>
58
<% if scope.lookupvar('rsyslog::local_host_name') and scope.lookupvar('rsyslog::local_host_name') != :undef -%>
69
$LocalHostName <%= scope.lookupvar('rsyslog::local_host_name') %>
710
<% end -%>
11+
812
#################
913
#### MODULES ####
1014
#################
@@ -21,11 +25,6 @@ $KLogPermitNonKernelFacility on
2125
###########################
2226
#### GLOBAL DIRECTIVES ####
2327
###########################
24-
#
25-
# Set max message size for sending and receiving
26-
#
27-
$MaxMessageSize <%= scope.lookupvar('rsyslog::max_message_size') %>
28-
2928
#
3029
# Set rate limit for messages received.
3130
#

0 commit comments

Comments
 (0)