rng-tools: yet another try to fix it
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 9 Jan 2016 15:04:20 +0000 (16:04 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 9 Jan 2016 15:04:20 +0000 (16:04 +0100)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
modules/debian-org/lib/facter/paths.rb
modules/rng-tools/manifests/init.pp

index 3fe23c4..a330c30 100644 (file)
@@ -6,6 +6,7 @@
    /srv/mirrors/debian-backports
    /srv/mirrors/debian-debug
    /srv/mirrors/debian-security
+   /dev/hwrng
 }.each do |path|
        Facter.add("has" + path.gsub(/[\/-]/,'_')) do
                setcode do
index 9c34295..abbc486 100644 (file)
@@ -1,5 +1,5 @@
 class rng-tools {
-       if inline_template("<% if File.exist?('/dev/hwrng') -%>true<% end -%>") {
+       if $has_dev_hwrng {
                package { 'rng-tools':
                        ensure => installed
                }