Do not install rng-tools on stretch VMs
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 7 Apr 2017 17:14:56 +0000 (19:14 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 7 Apr 2017 17:14:56 +0000 (19:14 +0200)
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 <aurelien@aurel32.net>
modules/rng_tools/manifests/init.pp

index d1db5ba..626d8c2 100644 (file)
@@ -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
                }