summaryrefslogtreecommitdiff
path: root/manifests/client.pp
blob: 234523f7266e4dea26d54d9f64af7cb952bc0706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# client.pp - configure a munin node
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
# See LICENSE for the full license granted to you.
# Adapted and improved by admin(at)immerda.ch

class munin::client inherits munin {

  $munin_port_real = $munin_port ? { '' => 4949, default => $munin_port } 
  $munin_host_real = $munin_host ? {
    '' => '*',
    'fqdn' => '*',
    default => $munin_host
  }
  
  case $operatingsystem {
    openbsd: { include munin::client::openbsd }
    darwin: { include munin::client::darwin }
    debian,ubuntu: { include munin::client::debian }
    gentoo: { include munin::client::gentoo }
    centos: { include munin::client::centos }
    default: { include munin::client::base }
  }
  
  if $use_shorewall {
    include shorewall::rules::munin
  }
  
}