forked from voxpupuli/puppet-telegraf
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bede' of github.com:BedeGaming/puppet-telegraf into bede
- Loading branch information
Showing
10 changed files
with
99 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Alex Simenduev <shamil.si@gmail.com> | ||
Ashton Davis <contact@adavis.me> | ||
Asif Shaikh <ripclawffb@users.noreply.github.com> | ||
Cosmo Petrich <cosmopetrich@users.noreply.github.com> | ||
doomnuggets <doomnuggets@users.noreply.github.com> | ||
Gerold Katzinger <gerold@katzinger.info> | ||
Henrik Thostrup Jensen <thostrup@gmail.com> | ||
James Glenn <thedonkdonk@gmail.com> | ||
Jessica <mxjessie@users.noreply.github.com> | ||
Joshua Spence <josh@joshuaspence.com> | ||
Joshua-Snapp <jksnapp@gmail.com> | ||
Karolis Labrencis <karolis@labrencis.lt> | ||
Luke Swithenbank <swithenbank.luke@gmail.com> | ||
Mark McKinstry <mmckinst@users.noreply.github.com> | ||
Maxime Devalland <maxime@devalland.com> | ||
Mohammed Naser <mnaser@vexxhost.com> | ||
nexecook <ecook@nexcess.net> | ||
Nick Jones <nick.jones@datacentred.co.uk> | ||
Simon <spjmurray@yahoo.co.uk> | ||
Stuart Fox <sfox@xmatters.com> | ||
Stuart Fox <stuart@1000-clouds.ca> | ||
Sébastien <sebastien.nahelou@gmail.com> | ||
Tomas Barton <barton.tomas@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# == Define: telegraf::output | ||
# | ||
# A Puppet wrapper for discrete Telegraf output files | ||
# | ||
# === Parameters | ||
# | ||
# [*options*] | ||
# Hash. Plugin options for use the the output template. | ||
# | ||
# [*sections*] | ||
# Hash. Some outputs take multiple sections. | ||
# | ||
define telegraf::output ( | ||
$plugin_type = $name, | ||
$options = undef, | ||
$suboptions = undef, | ||
$sections = undef, | ||
) { | ||
include telegraf | ||
|
||
if $options { | ||
validate_hash($options) | ||
} | ||
|
||
if $sections { | ||
validate_hash($sections) | ||
} | ||
|
||
Class['::telegraf::config'] | ||
-> file { "${telegraf::config_folder}/output-${name}.conf": | ||
content => template('telegraf/output.conf.erb'), | ||
} | ||
~> Class['::telegraf::service'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.." | ||
|
||
# see also ".mailmap" for how email addresses and names are deduplicated | ||
|
||
{ | ||
cat <<-'EOH' | ||
# This file lists all individuals having contributed content to the repository. | ||
# For how it is generated, see `scripts/generate-authors.sh`. | ||
EOH | ||
echo | ||
git log --format='%aN <%aE>' | LC_ALL=C.UTF-8 sort -uf | ||
} > AUTHORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[[outputs.<%= @plugin_type %>]] | ||
<% unless @options == nil -%> | ||
<% @options.sort.each do | option, value | -%> | ||
<%= option -%> = <% if value.is_a?(String) %>"<%= value %>"<% elsif value.is_a?(Array) %><%= value.inspect %><% else %><%= value %><% end %> | ||
<% end -%> | ||
<% end -%> | ||
<% if @sections -%> | ||
<% @suboptions.sort.each do |section, option| -%> | ||
[outputs.<%= @plugin_type %>.<%= section %>] | ||
<% unless option == nil -%> | ||
<% option.sort.each do | suboption, value | -%> | ||
<%= suboption -%> = <% if value.is_a?(String) %>"<%= value %>"<% elsif value.is_a?(Array) %><%= value.inspect %><% else %><%= value %><% end %> | ||
<% end -%> | ||
<% end -%> | ||
<% end -%> | ||
<% end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters