Fix KVM detection for rng-tools
[mirror/dsa-puppet.git] / modules / rng_tools / manifests / init.pp
index d0b4e7f..9981fe1 100644 (file)
@@ -1,5 +1,5 @@
 class rng_tools {
-       if $has_dev_hwrng and !($::kvmdomain and (versioncmp($::lsbmajdistrelease, '9') >= 0)) {
+       if $has_dev_hwrng and !($::is_virtual and $::virtual == 'kvm' and (versioncmp($::lsbmajdistrelease, '9') >= 0)) {
                package { 'rng-tools':
                        ensure => installed
                }