summaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: f87a1b57a39f55679bb0ff50097a87f8d2e825a9 (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
# install munin plugin and helpers
class ejabberd::munin {
  munin::plugin::deploy{'ejabberd_':
    ensure => absent,
    source => 'ejabberd/munin/ejabberd_';
  }
  $domains = join($ejabberd::domains, ' ')
  munin::plugin{['ejabberd_users','ejabberd_connections','ejabberd_registrations']:
    ensure  => 'ejabberd_',
    require => [ Munin::Plugin::Deploy['ejabberd_'] ],
    config  => "env.vhosts ${domains}";
  }
  File {
    require => Munin::Plugin['ejabberd_registrations'],
    owner   => root,
    group   => 0,
    mode    => '0700',
  }
  file{
    '/etc/cron.daily/ejabberd_registrations':
      source  => 'puppet:///modules/ejabberd/munin/ejabberd_registrations.cron';
    '/etc/cron.d/ejabberd_munin':
      source  => 'puppet:///modules/ejabberd/munin/ejabberd_munin.cron';
  }
}