X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fpaths.rb;h=47a010ce825698b7d702078c78ecba607e46eb63;hb=fbe56e4206801c65dae31a524d1af8665ead5714;hp=2394aa6c4ab0b8571ade14da1e03efc40ae298d9;hpb=b2dda249b749f92ac561fe6c15d858b4a39439dc;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/lib/facter/paths.rb b/modules/debian-org/lib/facter/paths.rb index 2394aa6c4..47a010ce8 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -3,11 +3,12 @@ /srv/buildd /etc/ssh/ssh_host_ed25519_key /srv/mirrors/debian - /srv/mirrors/debian-backports /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