X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fpaths.rb;h=47a010ce825698b7d702078c78ecba607e46eb63;hb=6832fcf5d8cbc0071e33a54d0c2c186cb3c6c775;hp=9e569fb8277b070f3e82591d937cae9b2b587bdd;hpb=3f2300fe6fd8dbb91c842e4a3b8c58322b65ede6;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/lib/facter/paths.rb b/modules/debian-org/lib/facter/paths.rb index 9e569fb82..47a010ce8 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -2,8 +2,13 @@ %w{/srv/build-trees /srv/buildd /etc/ssh/ssh_host_ed25519_key + /srv/mirrors/debian + /srv/mirrors/debian-debug + /srv/mirrors/debian-ports + /srv/mirrors/debian-security + /dev/hwrng }.each do |path| - Facter.add("has" + path.gsub('/','_')) do + Facter.add("has" + path.gsub(/[\/-]/,'_')) do setcode do if FileTest.exist?(path) true