Try to use booleans instead of strings - this can't possibly go wrong
authorStephen Gran <steve@lobefin.net>
Mon, 9 Mar 2009 19:34:48 +0000 (19:34 +0000)
committerStephen Gran <steve@lobefin.net>
Mon, 9 Mar 2009 19:34:48 +0000 (19:34 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/raidcontroller.rb
manifests/site.pp

index 263b16b..12d140f 100644 (file)
@@ -9,7 +9,7 @@ Facter.add("smartarraycontroller") do
                                ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/
                        }
                end
-               ishp
+               ishp == "true"
        end
 end
 
@@ -29,7 +29,7 @@ Facter.add("3warecontroller") do
                                is3w = "true" if x =~ /Vendor: 3ware/
                        }
                end
-               is3w
+               is3w == "true"
        end
 end
 
@@ -42,7 +42,7 @@ Facter.add("swraid") do
                                 swraid = "true" if x =~ /md[0-9]+ : active/
                         }
                 end
-                swraid
+                swraid == "true"
        end
 end
 
index 4758621..6b5f001 100644 (file)
@@ -7,9 +7,8 @@ node default {
     include samhain
     include debian-org
 
-    case $smartarraycontroller {
-        "true":    { include debian-proliant }
-        default: {}
+    if $smartarraycontroller {
+        include debian-proliant
     }
     case $mta {
         "exim4":   { include exim }