summaryrefslogtreecommitdiff
path: root/puppet/modules/rsyslog/templates/server/_default-footer.conf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/rsyslog/templates/server/_default-footer.conf.erb')
-rw-r--r--puppet/modules/rsyslog/templates/server/_default-footer.conf.erb13
1 files changed, 13 insertions, 0 deletions
diff --git a/puppet/modules/rsyslog/templates/server/_default-footer.conf.erb b/puppet/modules/rsyslog/templates/server/_default-footer.conf.erb
new file mode 100644
index 00000000..d8bd00ad
--- /dev/null
+++ b/puppet/modules/rsyslog/templates/server/_default-footer.conf.erb
@@ -0,0 +1,13 @@
+
+# Switch back to default ruleset
+$RuleSet RSYSLOG_DefaultRuleset
+
+<% if scope.lookupvar('rsyslog::server::enable_udp') -%>
+$InputUDPServerBindRuleset remote
+$UDPServerRun <%= scope.lookupvar('rsyslog::server::port') %>
+<% end -%>
+
+<% if scope.lookupvar('rsyslog::server::enable_tcp') -%>
+$InputTCPServerBindRuleset remote
+$InputTCPServerRun <%= scope.lookupvar('rsyslog::server::port') %>
+<% end -%>