summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/partofme/manifests/monitoring.pp2
-rw-r--r--modules/tick/manifests/client/plugin/smart.pp13
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/partofme/manifests/monitoring.pp b/modules/partofme/manifests/monitoring.pp
index 09bf5f7..c84f9f7 100644
--- a/modules/partofme/manifests/monitoring.pp
+++ b/modules/partofme/manifests/monitoring.pp
@@ -70,4 +70,6 @@ class partofme::monitoring {
}
include tick::client::base_plugins
+
+ class { "tick::client::plugin::smart": }
}
diff --git a/modules/tick/manifests/client/plugin/smart.pp b/modules/tick/manifests/client/plugin/smart.pp
new file mode 100644
index 0000000..21c1254
--- /dev/null
+++ b/modules/tick/manifests/client/plugin/smart.pp
@@ -0,0 +1,13 @@
+class tick::client::plugin::smart {
+ tick::client::plugin { "smart":
+ opts => {
+ use_sudo => true,
+ attributes => true,
+ }
+ }
+
+ file { "/etc/sudoers.d/telegraf-smart":
+ source => 'puppet:///modules/tick/plugins/smart.sudoers',
+ require => Package['sudo'];
+ }
+}