diff options
Diffstat (limited to 'modules/tick')
-rw-r--r-- | modules/tick/files/plugins/godwrap.conf | 4 | ||||
-rw-r--r-- | modules/tick/manifests/client/base_plugins.pp | 1 | ||||
-rw-r--r-- | modules/tick/manifests/client/plugin/godwrap.pp | 7 |
3 files changed, 12 insertions, 0 deletions
diff --git a/modules/tick/files/plugins/godwrap.conf b/modules/tick/files/plugins/godwrap.conf new file mode 100644 index 0000000..0defc28 --- /dev/null +++ b/modules/tick/files/plugins/godwrap.conf @@ -0,0 +1,4 @@ +[[inputs.execd]] +command = ["/usr/bin/godwrap", "influxdb", "--execd", "--status", "/media/persistent/godwrap"] +data_format = "influx" +signal = "STDIN" diff --git a/modules/tick/manifests/client/base_plugins.pp b/modules/tick/manifests/client/base_plugins.pp index ff3df42..4a9c4df 100644 --- a/modules/tick/manifests/client/base_plugins.pp +++ b/modules/tick/manifests/client/base_plugins.pp @@ -33,6 +33,7 @@ class tick::client::base_plugins { class { [ "tick::client::plugin::duplicati", + "tick::client::plugin::godwrap", "tick::client::plugin::pacman", ]: } diff --git a/modules/tick/manifests/client/plugin/godwrap.pp b/modules/tick/manifests/client/plugin/godwrap.pp new file mode 100644 index 0000000..508e817 --- /dev/null +++ b/modules/tick/manifests/client/plugin/godwrap.pp @@ -0,0 +1,7 @@ +class tick::client::plugin::godwrap { + file { "/etc/telegraf/telegraf.d/godwrap.conf": + source => 'puppet:///modules/tick/plugins/godwrap.conf', + require => File["/etc/telegraf/telegraf.d"], + notify => Service["telegraf"]; + } +} |