fix path for munin-log file
[puppet_munin.git] / manifests / client.pp
1 # client.pp - configure a munin node
2 # Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
3 # See LICENSE for the full license granted to you.
4 # Adapted and improved by admin(at)immerda.ch
5
6 class munin::client(
7   $allow = [ '127.0.0.1' ],
8   $host = '*',
9   $port = '4949',
10   $manage_shorewall = false,
11   $shorewall_collector_source = 'net'
12 ) {
13   case $::operatingsystem {
14     openbsd: { include munin::client::openbsd }
15     darwin: { include munin::client::darwin }
16     debian,ubuntu: { include munin::client::debian }
17     gentoo: { include munin::client::gentoo }
18     centos: { include munin::client::package }
19     default: { include munin::client::base }
20   }
21   if $munin::client::manage_shorewall {
22     class{'shorewall::rules::munin':
23       munin_port => $port,
24       munin_collector => delete($allow,'127.0.0.1'),
25       collector_source => $shorewall_collector_source,
26     }
27   }
28 }