blob: f6e7a0878bc4fbf139178515102de075b0c70f6e (
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
29
|
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']{
require => Package['munin-common'],
}
}
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'],
}
}
|