]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - facts/hosts.rb
not breaking the paths in production branch maybe helps
[dsa-puppet.git] / facts / hosts.rb
index 3e6b2d9dd7504da09a1b6666f598db67fb4e92f0..b55c43b1a2546dbc46617459b320714a3ffc9d00 100644 (file)
@@ -1,10 +1,9 @@
 Facter.add("brokenhosts") do
-       confine :kernel => :linux
        brokenhosts = "true"
        if FileTest.exist?("/etc/hosts")
                IO.foreach("/etc/hosts") do |x|
                        x.split.each do |y|
-                               if y == fqdn
+                               if y == Facter.value("fqdn")
                                        brokenhosts = "false"
                                        break
                                end