From: Aurelien Jarno Date: Fri, 7 Apr 2017 17:14:56 +0000 (+0200) Subject: Do not install rng-tools on stretch VMs X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=1f5dbd7384d4f8d53338db3b3d7d49264fb6f47d;p=mirror%2Fdsa-puppet.git 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 --- 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 }