79d275e5a987c536960eefff88149d3dbe534d9b
[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 = hiera('munin_client_allow',['127.0.0.1']),
8   $host = hiera('munin_host','*'),
9   $port = hiera('munin_port','4949')
10 ) {
11   case $::operatingsystem {
12     openbsd: { include munin::client::openbsd }
13     darwin: { include munin::client::darwin }
14     debian,ubuntu: { include munin::client::debian }
15     gentoo: { include munin::client::gentoo }
16     centos: { include munin::client::package }
17     default: { include munin::client::base }
18   }
19   if hiera('use_shorewall',false) {
20     include shorewall::rules::munin
21   }
22 }