projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of git+ssh://puppet.debian.org/srv/puppet.debian.org/git/dsa...
[mirror/dsa-puppet.git]
/
facts
/
hosts.rb
diff --git
a/facts/hosts.rb
b/facts/hosts.rb
index
3e6b2d9
..
b55c43b
100644
(file)
--- a/
facts/hosts.rb
+++ b/
facts/hosts.rb
@@
-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