summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-07-04 22:13:15 -0400
committerJesse Luehrs <doy@tozt.net>2020-07-04 22:13:15 -0400
commit76248d0e48b25f35fe9a9b05955d356b0aac8b4a (patch)
tree4953b1185ae8905e6f8c9d4cb53a0e11e3f80ddf
parent0c0aca2633384eaa393ecbf34230088e3ff83041 (diff)
downloadpuppet-tozt-76248d0e48b25f35fe9a9b05955d356b0aac8b4a.tar.gz
puppet-tozt-76248d0e48b25f35fe9a9b05955d356b0aac8b4a.zip
factor common plugins out into a shared module
-rw-r--r--modules/mail/manifests/monitoring.pp24
-rw-r--r--modules/partofme/manifests/monitoring.pp24
-rw-r--r--modules/tick/manifests/client/base_plugins.pp25
-rw-r--r--modules/tozt/manifests/monitoring.pp24
4 files changed, 28 insertions, 69 deletions
diff --git a/modules/mail/manifests/monitoring.pp b/modules/mail/manifests/monitoring.pp
index 92bbaa7..d726bbd 100644
--- a/modules/mail/manifests/monitoring.pp
+++ b/modules/mail/manifests/monitoring.pp
@@ -79,27 +79,5 @@ class mail::monitoring {
]:
}
- tick::client::plugin {
- "disk":
- opts => {
- ignore_fs => [
- "tmpfs",
- "devtmpfs",
- "devfs",
- "iso9660",
- "overlay",
- "aufs",
- "squashfs"
- ],
- };
- [
- "cpu",
- "diskio",
- "kernel",
- "mem",
- "processes",
- "swap",
- "system",
- ]:
- }
+ include tick::client::base_plugins
}
diff --git a/modules/partofme/manifests/monitoring.pp b/modules/partofme/manifests/monitoring.pp
index ab3aeef..09bf5f7 100644
--- a/modules/partofme/manifests/monitoring.pp
+++ b/modules/partofme/manifests/monitoring.pp
@@ -69,27 +69,5 @@ class partofme::monitoring {
]:
}
- tick::client::plugin {
- "disk":
- opts => {
- ignore_fs => [
- "tmpfs",
- "devtmpfs",
- "devfs",
- "iso9660",
- "overlay",
- "aufs",
- "squashfs"
- ],
- };
- [
- "cpu",
- "diskio",
- "kernel",
- "mem",
- "processes",
- "swap",
- "system",
- ]:
- }
+ include tick::client::base_plugins
}
diff --git a/modules/tick/manifests/client/base_plugins.pp b/modules/tick/manifests/client/base_plugins.pp
new file mode 100644
index 0000000..aabedeb
--- /dev/null
+++ b/modules/tick/manifests/client/base_plugins.pp
@@ -0,0 +1,25 @@
+class tick::client::base_plugins {
+ tick::client::plugin {
+ "disk":
+ opts => {
+ ignore_fs => [
+ "tmpfs",
+ "devtmpfs",
+ "devfs",
+ "iso9660",
+ "overlay",
+ "aufs",
+ "squashfs"
+ ],
+ };
+ [
+ "cpu",
+ "diskio",
+ "kernel",
+ "mem",
+ "processes",
+ "swap",
+ "system",
+ ]:
+ }
+}
diff --git a/modules/tozt/manifests/monitoring.pp b/modules/tozt/manifests/monitoring.pp
index b5b1ff1..0162969 100644
--- a/modules/tozt/manifests/monitoring.pp
+++ b/modules/tozt/manifests/monitoring.pp
@@ -81,27 +81,5 @@ class tozt::monitoring {
]:
}
- tick::client::plugin {
- "disk":
- opts => {
- ignore_fs => [
- "tmpfs",
- "devtmpfs",
- "devfs",
- "iso9660",
- "overlay",
- "aufs",
- "squashfs"
- ],
- };
- [
- "cpu",
- "diskio",
- "kernel",
- "mem",
- "processes",
- "swap",
- "system",
- ]:
- }
+ include tick::client::base_plugins
}