diff options
-rw-r--r-- | modules/partofme/manifests/monitoring.pp | 2 | ||||
-rw-r--r-- | modules/tick/manifests/client/plugin/smart.pp | 13 |
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']; + } +} |