aboutsummaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: ac2630a722b442a55e7e127101fa88fa7fb0e8c0 (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:///modules/tor/munin/tor_connections",
      mode => 0755, owner => root, group => root;
    
    "/usr/local/share/munin-plugins/tor_routers":
      source => "puppet:///modules/tor/munin/tor_routers",
      mode => 0755, owner => root, group => root;

    "/usr/local/share/munin-plugins/tor_traffic":
      source => "puppet:///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";
  }
}