1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-09-19 20:20:35 +00:00

Merge pull request #18 from wywygmbh/fix_indentation

Fix indentation
This commit is contained in:
Max Wilhelm 2017-08-04 17:03:05 +02:00 committed by GitHub
commit 780df1edae
7 changed files with 72 additions and 72 deletions

View File

@ -1,6 +1,6 @@
<filter *.test> <filter *.test>
type record_transformer type record_transformer
<record> <record>
hostname ${hostname} hostname ${hostname}
</record> </record>
</filter> </filter>

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,6 +1,6 @@
<source> <source>
type tail type tail
format json format json
path /var/log/test-application/*.json path /var/log/test-application/*.json
tag application.test tag application.test
</source> </source>

View File

@ -1,13 +1,13 @@
<filter <%= @pattern %>> <filter <%= @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 |key2, val2| -%> <%- val.each do |key2, val2| -%>
<%= key2 -%> <%= val2 %> <%= key2 -%> <%= val2 %>
<%- end -%> <%- end -%>
</<%= key %>> </<%= key %>>
<%- else -%> <%- else -%>
<%= key -%> <%= val %> <%= key -%> <%= val %>
<%- end -%> <%- end -%>
<% end -%> <% end -%>
</filter> </filter>

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>

View File

@ -1,5 +1,5 @@
<source> <source>
<% @config.each do |key, val| -%> <% @config.each do |key, val| -%>
<%= key -%> <%= val %> <%= key -%> <%= val %>
<% end -%> <% end -%>
</source> </source>