summaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: 2a15630896d49eb4ca9c79c0c16bd290349350bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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}\ntimeout 30\nuser root\ngroup root";
  }
  file{
    '/etc/cron.daily/ejabberd_registrations':
      source  => 'puppet:///modules/ejabberd/munin/ejabberd_registrations.cron',
      require => Munin::Plugin['ejabberd_registrations'],
      owner   => root,
      group   => 0,
      mode    => '0700';
  }
}