1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-10 04:50:34 +00:00

fixed match.erb template indentation

This commit is contained in:
Max Wilhelm 2017-08-04 11:16:31 +02:00
parent ad17694713
commit 5f84f04f0f
3 changed files with 54 additions and 54 deletions

View File

@ -1,13 +1,13 @@
<match *.test> <match *.test>
type copy type copy
<store> <store>
type elasticsearch type elasticsearch
logstashformat true logstashformat true
hosts 172.20.10.17:9200 hosts 172.20.10.17:9200
flush_interval 30s flush_interval 30s
</store> </store>
<store> <store>
type file type file
path /tmp/td-agent-debug.log path /tmp/td-agent-debug.log
</store> </store>
</match> </match>

View File

@ -1,11 +1,11 @@
<match *.test> <match *.test>
flush_interval 30s flush_interval 30s
type secure_forward type secure_forward
secure yes secure yes
shared_key my_shared_key shared_key my_shared_key
self_hostname instance.test.com self_hostname instance.test.com
ca_cert_path /path/to/ca.cert ca_cert_path /path/to/ca.cert
<server> <server>
host test.server.com host test.server.com
</server> </server>
</match> </match>

View File

@ -1,39 +1,39 @@
<match <%= @pattern %>> <match <%= @pattern %>>
<% @config.each do |key, val| -%> <% @config.each do |key, val| -%>
<%- if val.is_a?( Hash ) -%> <%- if val.is_a?( Hash ) -%>
<<%= key -%>> <<%= key -%>>
<%- val.each do |key, val| -%> <%- val.each do |key, val| -%>
<%= key -%> <%= val %> <%= key -%> <%= val %>
<%- end -%> <%- end -%>
</<%= key %>> </<%= key %>>
<%- elsif val.is_a?( Array ) -%> <%- elsif val.is_a?( Array ) -%>
<%- val.each do |k, v| -%> <%- val.each do |k, v| -%>
<<%= key -%>> <<%= key -%>>
<%- if k.is_a?( Hash ) -%> <%- if k.is_a?( Hash ) -%>
<%- k.each do |x, y| -%> <%- k.each do |x, y| -%>
<%- if y.is_a?( Array ) -%> <%- if y.is_a?( Array ) -%>
<%- y.each do |a, b| -%> <%- y.each do |a, b| -%>
<<%= x -%>> <<%= x -%>>
<%- if a.is_a?( Hash ) -%> <%- if a.is_a?( Hash ) -%>
<%- a.each do |c, d| -%> <%- a.each do |c, d| -%>
<%= c -%> <%= d %> <%= c -%> <%= d %>
<%- end -%> <%- end -%>
<%- else -%> <%- else -%>
<%= a -%> <%= b %> <%= a -%> <%= b %>
<%- end -%> <%- end -%>
</<%= x %>> </<%= x %>>
<%- end -%>
<%- else -%>
<%= x -%> <%= y %>
<%- end -%>
<%- end -%>
<%- else -%>
<%= k -%> <%= v %>
<%- end -%>
</<%= key %>>
<%- end -%>
<%- else -%>
<%= key -%> <%= val %>
<%- end -%> <%- end -%>
<%- else -%>
<%= x -%> <%= y %>
<%- end -%>
<%- end -%>
<%- else -%>
<%= k -%> <%= v %>
<%- end -%>
</<%= key %>>
<%- end -%>
<%- else -%>
<%= key -%> <%= val %>
<%- end -%>
<% end -%> <% end -%>
</match> </match>