summaryrefslogtreecommitdiffstats
path: root/modules/tick/manifests/client/plugin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tick/manifests/client/plugin.pp')
-rw-r--r--modules/tick/manifests/client/plugin.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/tick/manifests/client/plugin.pp b/modules/tick/manifests/client/plugin.pp
new file mode 100644
index 0000000..f9c2f83
--- /dev/null
+++ b/modules/tick/manifests/client/plugin.pp
@@ -0,0 +1,9 @@
+define tick::client::plugin($opts = {}) {
+ include tick::client
+
+ file { "/etc/telegraf/telegraf.d/${name}.conf":
+ content => template("tick/plugin.conf"),
+ require => File["/etc/telegraf/telegraf.d"],
+ notify => Service["telegraf"];
+ }
+}