diff options
author | mh <mh@immerda.ch> | 2012-11-28 23:53:19 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-11-28 23:53:19 +0100 |
commit | b41dd54597cd925a3e26879ccf21fba24c435033 (patch) | |
tree | a1ff39a0d4a66c90026d4e378b911403aa2f8e6d /manifests | |
parent | 9d0260a10ab737a4b1e57403fadcda95e15ce80b (diff) | |
download | puppet-ejabberd-b41dd54597cd925a3e26879ccf21fba24c435033.tar.gz puppet-ejabberd-b41dd54597cd925a3e26879ccf21fba24c435033.tar.bz2 |
cronify all munin plugins
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/munin.pp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/manifests/munin.pp b/manifests/munin.pp index 2a15630..f87a1b5 100644 --- a/manifests/munin.pp +++ b/manifests/munin.pp @@ -8,14 +8,18 @@ class ejabberd::munin { 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"; + 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', - require => Munin::Plugin['ejabberd_registrations'], - owner => root, - group => 0, - mode => '0700'; + source => 'puppet:///modules/ejabberd/munin/ejabberd_registrations.cron'; + '/etc/cron.d/ejabberd_munin': + source => 'puppet:///modules/ejabberd/munin/ejabberd_munin.cron'; } } |