We used Dir.entries('/var/lib/puppet/yaml/node/') to get a list of all
nodes. That dir is now empty. Switch to using
Dir.entries('/var/lib/puppet/yaml/facts/').
Both are probably bad, but yamlinfo() should be phased out in favor of
hiera/puppetdb anyhow, so for now this is a temporary fix.
ret = {}
if host == '*'
- Dir.entries('/var/lib/puppet/yaml/node/').each do |fname|
+ Dir.entries('/var/lib/puppet/yaml/facts/').each do |fname|
next unless fname =~ /(.*)\.yaml$/
host_name = $1
ret[host_name] = read_yaml.call(yaml, host_name)