aboutsummaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: 2f0d5c2124439785310cd88b7768a5fc4fccd303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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/run/tor/control.authcookie",
      script_path_in => '/usr/local/share/munin-plugins';
  }
}