ee6afbce2527471236123016b22540c2a82a4089
[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    /lib/udev/rules.d/60-kpartx.rules
17 }.each do |path|
18         Facter.add("has" + path.gsub(/[\/.-]/,'_')) do
19                 setcode do
20                         if FileTest.exist?(path)
21                                 true
22                         else
23                                 false
24                         end
25                 end
26         end
27 end