summaryrefslogtreecommitdiff
path: root/manifests/client/debian.pp
blob: 63a0e14b30aabe3d1fd65ec35d0069d691f3f076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Install the munin client on debian
class munin::client::debian inherits munin::client::base {
  # the plugin will need that
  ensure_packages(['iproute'])

  $hasstatus = $::lsbdistcodename ? {
    sarge => false,
    default => true
  }

  Service['munin-node']{
    # sarge's munin-node init script has no status
    hasstatus => $hasstatus
  }
  File['/etc/munin/munin-node.conf']{
    content => template("munin/munin-node.conf.${::operatingsystem}.${::lsbdistcodename}"),
  }
  # workaround bug in munin_node_configure
  plugin { 'postfix_mailvolume': ensure => absent }
  include munin::plugins::debian
}