From: Aurelien Jarno Date: Sat, 9 Jan 2016 15:04:20 +0000 (+0100) Subject: rng-tools: yet another try to fix it X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=3c51f6447168549ce6a29f44cbddd6c10f1ac050;p=mirror%2Fdsa-puppet.git rng-tools: yet another try to fix it Signed-off-by: Aurelien Jarno --- diff --git a/modules/debian-org/lib/facter/paths.rb b/modules/debian-org/lib/facter/paths.rb index 3fe23c4c6..a330c3013 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -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 diff --git a/modules/rng-tools/manifests/init.pp b/modules/rng-tools/manifests/init.pp index 9c34295b9..abbc48622 100644 --- a/modules/rng-tools/manifests/init.pp +++ b/modules/rng-tools/manifests/init.pp @@ -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 }