X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian_org%2Flib%2Ffacter%2Fpaths.rb;h=c422bc410065068b6094945d44f9de66a6e7636a;hb=f2d0feb7e716cb5156d57b6573608a5115a4dfce;hp=ccc4588d80ff9276eadb3487f9693b2a90746ae8;hpb=6f2e5fc86e49c12b12eef39fc69e0e810a32c318;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian_org/lib/facter/paths.rb b/modules/debian_org/lib/facter/paths.rb index ccc4588d8..c422bc410 100644 --- a/modules/debian_org/lib/facter/paths.rb +++ b/modules/debian_org/lib/facter/paths.rb @@ -3,12 +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