summaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: 1b043f197ef0e50d7602991ae6a7294cf535df44 (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                  => 19051,
      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 19051"
  }
  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';
  }
}