X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fpaths.rb;h=47a010ce825698b7d702078c78ecba607e46eb63;hb=5f6e6af5773f9a435f4d78946b616988d8245200;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