Move rsync ssl setup into the rsync module
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / paths.rb
index 2394aa6..a330c30 100644 (file)
@@ -6,8 +6,9 @@
    /srv/mirrors/debian-backports
    /srv/mirrors/debian-debug
    /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