diff --git a/templates/rsyslog.conf.erb b/templates/rsyslog.conf.erb index 92d11b6..26fed45 100644 --- a/templates/rsyslog.conf.erb +++ b/templates/rsyslog.conf.erb @@ -106,12 +106,13 @@ $ActionQueueType LinkedList # run asynchronously $ActionResumeRetryCount -1 # infinite retries if host is down <% end -%> <% @log_server_real.each do |server| -%> - <% if server.include? ":" -%> +<% if server.include? ":" -%> <%= @source_facilities %> <% if @transport_protocol == 'tcp' -%>@<% end -%>@<%= server -%> <% else -%> <%= @source_facilities %> <% if @transport_protocol == 'tcp' -%>@<% end -%>@<%= server -%>:<%= @log_server_port %> <% end -%> <% end -%> +<% end -%> <% if @rsyslog_conf_version_real > 2 -%> <% if @is_log_server_real.to_s == 'true' -%>