Merge remote-tracking branch 'shared/master' into leap_master
[puppet_munin.git] / manifests / client.pp
1 # Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
2 # See LICENSE for the full license granted to you.
3 # Adapted and improved by admin(at)immerda.ch
4
5 # configure a munin node
6 # WARNING: this class should not be included directly. See the 'munin' class.
7 class munin::client {
8
9   case $::operatingsystem {
10     openbsd: { include munin::client::openbsd }
11     debian,ubuntu: { include munin::client::debian }
12     gentoo: { include munin::client::gentoo }
13     centos: { include munin::client::base }
14     default: { include munin::client::base }
15   }
16   if $munin::manage_shorewall {
17     class{'shorewall::rules::munin':
18       munin_port       => $munin::port,
19       munin_collector  => delete($munin::allow,'127.0.0.1'),
20       collector_source => $munin::shorewall_collector_source,
21     }
22   }
23 }