aboutsummaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: 6e6e0fa26302b3c503d01a9e18e7810a2f758a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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";
  }
}