summaryrefslogtreecommitdiff
path: root/manifests/client/package.pp
blob: 29f256daf7554cd718ac3913f8ae5d6f710d2a56 (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'],
    }
}