summaryrefslogtreecommitdiff
path: root/manifests/client/package.pp
blob: 0ee7443a2437475c7bd16868cf2007dc8ae0f490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class munin::client::package inherits munin::client::base {

  if $munin_node_ensure_version == '' { $munin_node_ensure_version = 'installed' }

  if $operatingsystem == "Debian" and $lsbdistcodename != "lenny" {
    package { 'munin-common':
      before => Package['munin-node'],
      ensure => $munin_node_ensure_version;
    }
      
    package { 'munin-node': ensure => $munin_node_ensure_version }
    Service['munin-node']{
      require => Package[munin-node],
    }
    File['/etc/munin/munin-node.conf']{
      # this has to be installed before the package, so the postinst can
      # boot the munin-node without failure!
      before => Package['munin-node'],
    }
  }
}