Created
January 29, 2014 13:34
-
-
Save KrisBuytaert/8688084 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%- unless servers.empty? then -%> | |
<%- if servers.type.to_s.eql? "String" then | |
array = []; | |
array.push(servers); | |
serverlist = array; | |
elsif servers.type.to_s.eql? "Array" then | |
serverlist = servers; | |
end -%> | |
<% serverlist.each do |syslog_server| -%> | |
### begin forwarding rule ### | |
$WorkDirectory /var/lib/rsyslog | |
$ActionQueueFileName <%= syslog_server %> | |
$ActionQueueMaxDiskSpace 1g | |
$ActionQueueSaveOnShutdown on | |
$ActionQueueType LinkedList | |
$ActionResumeRetryCount -1 | |
*.* @<%= syslog_server %> | |
### end of the forwarding rule ### | |
<% end -%> | |
<% end -%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment