
# 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 -%>

<% if (scope.lookupvar('rsyslog::server::enable_relp')) -%>
<% if (scope.function_versioncmp([@rsyslog_version, '6.3.6']) >= 0) -%>
$InputRELPServerBindRuleset remote
$InputRELPServerRun 20514
<% end -%>
<% end -%>


# 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 -%>

<% if (scope.lookupvar('rsyslog::server::enable_relp')) -%>
<% if (scope.function_versioncmp([@rsyslog_version, '6.3.6']) >= 0) -%>
$InputRELPServerBindRuleset remote
$InputRELPServerRun <%= scope.lookupvar('rsyslog::server::port') %>
<% end -%>
<% end -%>

Allow changing of the RELP server port.
server/_default-footer: Allow changing of the RELP server port.
