diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2008-04-29 10:00:06 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2008-04-29 10:00:06 +0200 |
commit | 78d0392d004986fbed9938e0ad994165fb8d51dd (patch) | |
tree | 2af64fd794dc3c9a1a2587db18669dc848339228 /manifests/client.pp | |
parent | 65fb027d8cf639c565b0f9fb53b5fbe9ee25dc7b (diff) | |
parent | a043afef5e8fb14385f59b4fee558f7f9618b050 (diff) |
merged with upstream
Diffstat (limited to 'manifests/client.pp')
-rw-r--r-- | manifests/client.pp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index 69e9f2e..8305bf0 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -1,6 +1,7 @@ # client.pp - configure a munin node # Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at> # See LICENSE for the full license granted to you. +# Adapted and improved by admin(at)immerda.ch class munin::client { @@ -54,12 +55,12 @@ class munin::client::base { hasrestart => true, require => Package[munin-node], } - file { - "/etc/munin/": + file {"/etc/munin/": ensure => directory, mode => 0755, owner => root, group => 0; - "/etc/munin/munin-node.conf": - content => template("munin/munin-node.conf.$operatingsystem.$lsbdistrelease"), + } + file {"/etc/munin/munin-node.conf": + content => template("munin/munin-node.conf.$operatingsystem"), mode => 0644, owner => root, group => 0, # this has to be installed before the package, so the postinst can # boot the munin-node without failure! @@ -99,6 +100,9 @@ class munin::client::debian inherits munin::client::base { # sarge's munin-node init script has no status hasstatus => $lsbdistcodename ? { sarge => false, default => true } } + 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 @@ -111,6 +115,7 @@ class munin::client::gentoo inherits munin::client::base { name => 'munin', category => 'net-analyzer', } + include munin::plugins::gentoo } |