Make syncproxy mirror basedir configurable in hiera, and use it in all templates...
[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    /srv/mirrors/syncproxy-debian
10    /srv/mirrors/syncproxy-debian-debug
11    /srv/mirrors/syncproxy-debian-ports
12    /srv/mirrors/syncproxy-debian-security
13    /dev/hwrng
14 }.each do |path|
15         Facter.add("has" + path.gsub(/[\/-]/,'_')) do
16                 setcode do
17                         if FileTest.exist?(path)
18                                 true
19                         else
20                                 false
21                         end
22                 end
23         end
24 end