X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian_org%2Flib%2Ffacter%2Fpaths.rb;h=ee6afbce2527471236123016b22540c2a82a4089;hb=4999970bbdafaa82d0baa4dc6b8c0901c82214d0;hp=b02f5ffcc7e15f2bca9068cdecba2d8bbfb554d5;hpb=59ed8099b6047999ff68b9dc652e9cf7477edf69;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian_org/lib/facter/paths.rb b/modules/debian_org/lib/facter/paths.rb index b02f5ffcc..ee6afbce2 100644 --- a/modules/debian_org/lib/facter/paths.rb +++ b/modules/debian_org/lib/facter/paths.rb @@ -3,16 +3,19 @@ /srv/buildd /etc/ssh/ssh_host_ed25519_key /srv/mirrors/debian + /srv/mirrors/debian-buildd /srv/mirrors/debian-debug /srv/mirrors/debian-ports /srv/mirrors/debian-security /srv/mirrors/public-debian + /srv/mirrors/public-debian-buildd /srv/mirrors/public-debian-debug /srv/mirrors/public-debian-ports /srv/mirrors/public-debian-security /dev/hwrng + /lib/udev/rules.d/60-kpartx.rules }.each do |path| - Facter.add("has" + path.gsub(/[\/-]/,'_')) do + Facter.add("has" + path.gsub(/[\/.-]/,'_')) do setcode do if FileTest.exist?(path) true