From 1f5dbd7384d4f8d53338db3b3d7d49264fb6f47d Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Fri, 7 Apr 2017 19:14:56 +0200 Subject: [PATCH] Do not install rng-tools on stretch VMs Newer kernel version, includng the one in stretch, are able to feel the entropy pool from a hardware random number generator without the help of userspace. The quality option determine how much entropy is used from the hardware random number and defaults to the maximum for virtio-rng. Therefore we don't need rng-tools anymore on stretch VMs. Signed-off-by: Aurelien Jarno --- modules/rng_tools/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rng_tools/manifests/init.pp b/modules/rng_tools/manifests/init.pp index d1db5babd..626d8c256 100644 --- a/modules/rng_tools/manifests/init.pp +++ b/modules/rng_tools/manifests/init.pp @@ -1,5 +1,5 @@ class rng_tools { - if $has_dev_hwrng { + if $has_dev_hwrng and !($::kvmdomain and versioncmp($::lsbmajdistrelease, '9') >= 0) { package { 'rng-tools': ensure => installed } -- 2.20.1