From 0ad2ff4de43bdd18b7ad9cce8a2712138e051b0c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 5 Jul 2020 16:54:02 -0400 Subject: add smart monitoring for telegraf --- modules/tick/manifests/client/plugin/smart.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/tick/manifests/client/plugin/smart.pp (limited to 'modules/tick') 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']; + } +} -- cgit v1.2.3-54-g00ecf