aboutsummaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: 2974195d044489c927c8c8e39e083f6f09e9c386 (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/run/tor/control.authcookie",
      script_path_in => '/usr/local/share/munin-plugins';
  }
}