minor fixes: sort fact contents; do not use non-existant service status on sarge...
authordavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Wed, 8 Aug 2007 21:05:45 +0000 (21:05 +0000)
committerdavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Wed, 8 Aug 2007 21:05:45 +0000 (21:05 +0000)
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@193 f03ff2f1-f02d-0410-970d-b9634babeaa1

files/facter/interfaces.rb
manifests/client.pp

index dc9e37c..a498d64 100755 (executable)
@@ -8,6 +8,6 @@ Facter.add("interfaces") do
                                value = matches[1]
                        end
                        value
-               end.compact.join(" ")
+               end.compact.sort.join(" ")
        end
 end
index 967b7ef..08b1aba 100644 (file)
@@ -110,7 +110,8 @@ class munin::client::debian
 
        service { "munin-node":
                ensure => running, 
-               hasstatus => true,
+               # sarge's munin-node init script has no status
+               hasstatus => $lsb_release { sarge => false, default => true }
        }
 
        munin::register { $fqdn: }