put the constraint in the right fact, Steve
authorStephen Gran <steve@lobefin.net>
Tue, 22 Sep 2009 23:45:39 +0000 (00:45 +0100)
committerStephen Gran <steve@lobefin.net>
Tue, 22 Sep 2009 23:45:39 +0000 (00:45 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/hosts.rb
facts/services.rb

index 69c15ac..b55c43b 100644 (file)
@@ -1,5 +1,4 @@
 Facter.add("brokenhosts") do
-        confine :kernel => :linux
        brokenhosts = "true"
        if FileTest.exist?("/etc/hosts")
                IO.foreach("/etc/hosts") do |x|
index 6c40cf0..d52f09c 100644 (file)
@@ -1,4 +1,5 @@
 ["bugs","qa"].each do |service|
+        confine :kernel => :linux
        Facter.add(service + "_host") do
                service_name = "#{service}." + Facter.domain
                active = false