47a010ce825698b7d702078c78ecba607e46eb63
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / paths.rb
1
2 %w{/srv/build-trees
3    /srv/buildd
4    /etc/ssh/ssh_host_ed25519_key
5    /srv/mirrors/debian
6    /srv/mirrors/debian-debug
7    /srv/mirrors/debian-ports
8    /srv/mirrors/debian-security
9    /dev/hwrng
10 }.each do |path|
11         Facter.add("has" + path.gsub(/[\/-]/,'_')) do
12                 setcode do
13                         if FileTest.exist?(path)
14                                 true
15                         else
16                                 ''
17                         end
18                 end
19         end
20 end