summaryrefslogtreecommitdiff
path: root/manifests/client/package.pp
blob: 0fc3529107ea29ac02bad10f3107de1abe43a916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class munin::client::package inherits munin::client::base {

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

  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'],
  }
}