summaryrefslogtreecommitdiffstats
path: root/modules/tozt
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-01-03 00:46:24 -0500
committerJesse Luehrs <doy@tozt.net>2019-01-03 00:46:24 -0500
commitef5e10b61b509d718cd9a0ff92f18a01e73c4cbf (patch)
tree0b9a578f1b06cd73102d5bdd2ce3a92aabfe0e3e /modules/tozt
parent7abca7c37fe61e7a5368173a219f7e5713ec0b86 (diff)
downloadpuppet-tozt-ef5e10b61b509d718cd9a0ff92f18a01e73c4cbf.tar.gz
puppet-tozt-ef5e10b61b509d718cd9a0ff92f18a01e73c4cbf.zip
run fail2ban and tarsnap plugins as root
Diffstat (limited to 'modules/tozt')
-rw-r--r--modules/tozt/files/munin-plugin-conf5
-rw-r--r--modules/tozt/manifests/monitoring.pp6
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/tozt/files/munin-plugin-conf b/modules/tozt/files/munin-plugin-conf
new file mode 100644
index 0000000..3a9b514
--- /dev/null
+++ b/modules/tozt/files/munin-plugin-conf
@@ -0,0 +1,5 @@
+[fail2ban]
+user root
+
+[tarsnap]
+user root
diff --git a/modules/tozt/manifests/monitoring.pp b/modules/tozt/manifests/monitoring.pp
index b52ffd6..08b6085 100644
--- a/modules/tozt/manifests/monitoring.pp
+++ b/modules/tozt/manifests/monitoring.pp
@@ -3,6 +3,12 @@ class tozt::monitoring {
include munin::duplicati
include munin::tarsnap
+ file { "/etc/munin/plugin-conf.d/tozt":
+ source => "puppet:///modules/tozt/munin-plugin-conf",
+ require => Package["munin-node"],
+ notify => Service["munin-node"];
+ }
+
munin::plugin {
[
'cpu',