mirror of
https://github.com/krislamo/puppet-fluentd
synced 2025-09-12 00:29:30 +00:00
Implemented <parse>, <storage> etc sections within fluentd::source template
- Changed templates/source.erb to accept Hash elements within 'config' - Updated source_spec test - Updated README.md
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
<source>
|
||||
<% @config.each do |key, val| -%>
|
||||
<%- if val.is_a?( Hash ) -%>
|
||||
<<%= key -%>>
|
||||
<%- val.each do |key2, val2| -%>
|
||||
<%= key2 -%> <%= val2 %>
|
||||
<%- end -%>
|
||||
</<%= key %>>
|
||||
<%- else -%>
|
||||
<%= key -%> <%= val %>
|
||||
<%- end -%>
|
||||
<% end -%>
|
||||
</source>
|
||||
|
Reference in New Issue
Block a user