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

  include ::tor::daemon::params
  Munin::Plugin::Deploy {
    config => "user ${tor::daemon::params::user}\n env.cookiefile /var/run/tor/control.authcookie\n env.port 9001" # lint:ignore:80chars 
  }
  munin::plugin::deploy {
    'tor_openfds':
      config => 'user root',
      source => 'tor/munin/tor_openfds';
    'tor_routers':
      source => 'tor/munin/tor_routers';
    'tor_traffic':
      source => 'tor/munin/tor_traffic';
  }
}