lint fixes for the linux module
[mirror/dsa-puppet.git] / modules / rng_tools / manifests / init.pp
index c8bb9ab..60eb7c0 100644 (file)
@@ -1,5 +1,5 @@
 class rng_tools {
-       if $has_dev_hwrng {
+       if $has_dev_hwrng and $::debarchitecture != 's390x' and !($::is_virtual and $::virtual == 'kvm' and (versioncmp($::lsbmajdistrelease, '9') >= 0)) {
                package { 'rng-tools':
                        ensure => installed
                }
@@ -7,5 +7,9 @@ class rng_tools {
                        ensure  => running,
                        require => Package['rng-tools']
                }
+       } else {
+               package { 'rng-tools':
+                       ensure => purged
+               }
        }
 }