1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-13 21:50:34 +00:00
puppet-fluentd/templates/filter.erb

14 lines
275 B
Plaintext
Raw Normal View History

2015-12-01 13:18:37 +00:00
<filter <%= @pattern %>>
<% @config.each do |key, val| -%>
2017-08-04 09:16:07 +00:00
<%- if val.is_a?( Hash ) -%>
<<%= key -%>>
<%- val.each do |key2, val2| -%>
<%= key2 -%> <%= val2 %>
<%- end -%>
</<%= key %>>
<%- else -%>
<%= key -%> <%= val %>
<%- end -%>
2015-12-01 13:18:37 +00:00
<% end -%>
</filter>