]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/munin/manifests/init.pp
Start with a storeconf munin thing
[dsa-puppet.git] / modules / munin / manifests / init.pp
index 2ae6429815176be7c5c16358ee61eeae488c5090..d5df24ef8741b23fd137cc813613b6434633f21b 100644 (file)
@@ -11,12 +11,14 @@ class munin {
 
        $owner = $::lsbdistcodename ? {
                squeeze => munin,
-               wheezy  => root
+               wheezy  => root,
+               undef => munin,
        }
 
        $gid = $::lsbdistcodename ? {
                squeeze => adm,
                wheezy  => 'www-data',
+               undef => adm,
        }
 
        file { '/var/log/munin':
@@ -57,4 +59,6 @@ class munin {
                rule            => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V6 $HOST_NAGIOS_V6) ACCEPT; }',
                notarule        => true,
        }
+
+       @@munin::master-per-node { $::fqdn: }
 }