klecker: remove acpi dmesg noise
[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-buildd
7    /srv/mirrors/debian-debug
8    /srv/mirrors/debian-ports
9    /srv/mirrors/debian-security
10    /srv/mirrors/public-debian
11    /srv/mirrors/public-debian-buildd
12    /srv/mirrors/public-debian-debug
13    /srv/mirrors/public-debian-ports
14    /srv/mirrors/public-debian-security
15    /dev/hwrng
16 }.each do |path|
17         Facter.add("has" + path.gsub(/[\/-]/,'_')) do
18                 setcode do
19                         if FileTest.exist?(path)
20                                 true
21                         else
22                                 false
23                         end
24                 end
25         end
26 end