mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
72e6bcd744
- Changed templates/source.erb to accept Hash elements within 'config' - Updated source_spec test - Updated README.md
14 lines
259 B
Plaintext
14 lines
259 B
Plaintext
<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>
|