X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian_org%2Flib%2Ffacter%2Fpaths.rb;h=c422bc410065068b6094945d44f9de66a6e7636a;hb=refs%2Fheads%2Ffordsaold;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..c422bc410 100644 --- a/modules/debian_org/lib/facter/paths.rb +++ b/modules/debian_org/lib/facter/paths.rb @@ -3,16 +3,20 @@ /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 + /etc/ssh/ssh_known_hosts }.each do |path| - Facter.add("has" + path.gsub(/[\/-]/,'_')) do + Facter.add("has" + path.gsub(/[\/.-]/,'_')) do setcode do if FileTest.exist?(path) true