aboutsummaryrefslogtreecommitdiff
path: root/manifests/munin.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-03-11 16:09:34 -0400
committerMicah Anderson <micah@riseup.net>2012-03-11 16:09:34 -0400
commitc467f2c028c05dea254d61f8e797d6b3ba1680b2 (patch)
tree87c9c22a14fbf90b54fcb3c71705436413254d22 /manifests/munin.pp
parent97257b64c83561d6b3e621cccf9563af17ef1fc3 (diff)
downloadpuppet-tor-c467f2c028c05dea254d61f8e797d6b3ba1680b2.tar.gz
puppet-tor-c467f2c028c05dea254d61f8e797d6b3ba1680b2.tar.bz2
add $use_munin parameter that will enable graphs
Diffstat (limited to 'manifests/munin.pp')
-rw-r--r--manifests/munin.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/munin.pp b/manifests/munin.pp
new file mode 100644
index 0000000..6e6e0fa
--- /dev/null
+++ b/manifests/munin.pp
@@ -0,0 +1,23 @@
+class tor::munin {
+
+ file {
+ "/usr/local/share/munin-plugins/tor_connections":
+ source => "puppet://$server/modules/tor/munin/tor_connections",
+ mode => 0755, owner => root, group => root;
+
+ "/usr/local/share/munin-plugins/tor_routers":
+ source => "puppet://$server/modules/tor/munin/tor_routers",
+ mode => 0755, owner => root, group => root;
+
+ "/usr/local/share/munin-plugins/tor_traffic":
+ source => "puppet://$server/modules/tor/munin/tor_traffic",
+ mode => 0755, owner => root, group => root;
+ }
+
+ munin::plugin {
+ [ "tor_connections", "tor_routers", "tor_traffic" ]:
+ ensure => present,
+ config => "user debian-tor\n env.cookiefile /var/lib/tor/control_auth_cookie",
+ script_path_in => "/usr/local/share/munin-plugins";
+ }
+}