]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - facts/hosts.rb
first stab at plugins-in-modules style
[dsa-puppet.git] / facts / hosts.rb
diff --git a/facts/hosts.rb b/facts/hosts.rb
deleted file mode 100644 (file)
index b55c43b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-Facter.add("brokenhosts") do
-       brokenhosts = "true"
-       if FileTest.exist?("/etc/hosts")
-               IO.foreach("/etc/hosts") do |x|
-                       x.split.each do |y|
-                               if y == Facter.value("fqdn")
-                                       brokenhosts = "false"
-                                       break
-                               end
-                       end
-               end
-       end
-       setcode do
-               brokenhosts == "true"
-       end
-end
-
-