Skip to content

Instantly share code, notes, and snippets.

/inputs.conf.erb Secret

Created October 1, 2014 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2bcb966643336fd34fac to your computer and use it in GitHub Desktop.
Save anonymous/2bcb966643336fd34fac to your computer and use it in GitHub Desktop.
inputs.conf.erb
# This file is managed by puppet
# Module:splunk::forwarder.pp
# $puppet/modules/splunk/template/forwarder/inputs.conf.erb
<% if operatingsystem == "Darwin" %>
<%= scope.lookupvar('splunk::platform::darwin') %>
<% elsif operatingsystem == "windows" %>
<%= scope.lookupvar('splunk::platform::windows') %>
<% else %>
<%= scope.lookupvar('splunk::platform::nix') %>
<% end -%>
[default]
host=<%= clientcert %>
index=corp
<% @monitor_paths.sort.each do |source_type, log_path| -%>
[monitor://<%= log_path %>]
sourcetype=<%= source_type %>
disabled = false
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment