summaryrefslogtreecommitdiff
path: root/puppet/modules/passenger/manifests/munin.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-07-12 16:46:06 -0400
committerMicah <micah@leap.se>2016-07-12 16:46:06 -0400
commit4a11e48e397f1a7eb4c68a1dd1f9e3c5a11352f8 (patch)
tree66379b593391e99bb5dc66cf7e9ef48947d80a21 /puppet/modules/passenger/manifests/munin.pp
parent95d95925e53ec98f3f5868479328a69449de3ca7 (diff)
git subrepo clone https://leap.se/git/puppet_passenger puppet/modules/passenger
subrepo: subdir: "puppet/modules/passenger" merged: "47fca11" upstream: origin: "https://leap.se/git/puppet_passenger" branch: "master" commit: "47fca11" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "1e79595" Change-Id: Idba1129126ca0f13a4441e00d7b53e8b4f856825
Diffstat (limited to 'puppet/modules/passenger/manifests/munin.pp')
-rw-r--r--puppet/modules/passenger/manifests/munin.pp20
1 files changed, 20 insertions, 0 deletions
diff --git a/puppet/modules/passenger/manifests/munin.pp b/puppet/modules/passenger/manifests/munin.pp
new file mode 100644
index 00000000..36bc53f2
--- /dev/null
+++ b/puppet/modules/passenger/manifests/munin.pp
@@ -0,0 +1,20 @@
+class passenger::munin {
+
+ case $passenger_memory_munin_config { '':
+ { $passenger_memory_munin_config = "user root\nenv.passenger_memory_stats /usr/sbin/passenger-memory-stats" }
+ }
+
+ case $passenger_stats_munin_config { '':
+ { $passenger_stats_munin_config = "user root\n" }
+ }
+
+ munin::plugin::deploy {
+ 'passenger_memory_stats':
+ source => 'passenger/munin/passenger_memory_stats',
+ config => $passenger_memory_munin_config;
+ 'passenger_stats':
+ source => 'passenger/munin/passenger_stats',
+ config => $passenger_stats_munin_config;
+ }
+
+}