1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-09-19 20:20:35 +00:00
puppet-fluentd/templates/source.erb
Robert Waffen 45449583d9 Extend templates for fluentd 0.14 new sections
- extend source to support format and parse section
- extend match to support buffers with chunk keys
- update readme
2017-11-11 15:33:08 +01:00

14 lines
255 B
Plaintext

<source>
<% @config.each do |key, val| -%>
<%- if val.is_a?( Hash ) -%>
<<%= key -%>>
<%- val.each do |key, val| -%>
<%= key -%> <%= val %>
<%- end -%>
</<%= key %>>
<%- else -%>
<%= key -%> <%= val %>
<%- end -%>
<% end -%>
</source>