fuel-plugin-lma-collector/deployment_scripts/puppet/modules/heka/templates/input/process.toml.erb

29 lines
600 B
Plaintext

[<%= @title %>_process]
type="ProcessInput"
ticker_interval = <%= @ticker_interval %>
decoder = "<%= @decoder %>_decoder"
<% if @stdout -%>
stdout = true
<% else %>
stdout = false
<% end %>
<% if @stderr -%>
stderr = true
<% else %>
stderr = false
<% end %>
<% if @splitter -%>
splitter = "<%= @splitter %>_splitter"
<% else -%>
splitter = "NullSplitter"
<% end -%>
<% @commands.each_with_index do |command, i| -%>
<% command.each do |cmd, args| -%>
[<%= @title %>_process.command.<%= i %>]
bin = "<%= cmd %>"
args = [ <%= args.collect{ |x| '"%s"' % x }.join(", ") %> ]
<%end%>
<% end %>