summaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: 4412337a7a4d233018671c2d4aaad8daa0e3abaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# munin plugins for puppet
class tor::munin {
  tor::daemon::control{
    'control_port_for_munin':
      port                  => 19051,
      cookie_authentication => 1,
      cookie_auth_file      => '/var/run/tor/control.authcookie',
  }

  Munin::Plugin::Deploy {
    config  => "user debian-tor\n env.cookiefile /var/run/tor/control.authcookie\n env.port 19051"
  }
  munin::plugin::deploy {
    'tor_connections':
      source => 'tor/munin/tor_connections';
    'tor_routers':
      source => 'tor/munin/tor_routers';
    'tor_traffic':
      source => 'tor/munin/tor_traffic';
  }
}