summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/imfile.erb3
-rw-r--r--templates/modload.erb3
-rw-r--r--templates/rsyslog.conf.erb4
3 files changed, 10 insertions, 0 deletions
diff --git a/templates/imfile.erb b/templates/imfile.erb
index 8b24edb..4a11c72 100644
--- a/templates/imfile.erb
+++ b/templates/imfile.erb
@@ -1,4 +1,7 @@
+<% if @extra_modules.empty?() or !@extra_modules.include?('imfile') -%>
$ModLoad imfile
+<% end -%>
+
$InputFileName <%= @file_name %>
$InputFileTag <%= @file_tag %>
diff --git a/templates/modload.erb b/templates/modload.erb
new file mode 100644
index 0000000..a14a612
--- /dev/null
+++ b/templates/modload.erb
@@ -0,0 +1,3 @@
+<% @extra_modules.each do |mod| -%>
+$ModLoad <%= mod %>
+<% end -%>
diff --git a/templates/rsyslog.conf.erb b/templates/rsyslog.conf.erb
index ef2a05e..f024569 100644
--- a/templates/rsyslog.conf.erb
+++ b/templates/rsyslog.conf.erb
@@ -11,6 +11,10 @@
###########################
#### GLOBAL DIRECTIVES ####
###########################
+#
+# Set max message size for sending and receiving
+#
+$MaxMessageSize <%= scope.lookupvar('rsyslog::max_message_size') %>
#
# Set the default permissions for all log files.