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
}
ensure => running,
require => Package['rng-tools']
}
+ } else {
+ package { 'rng-tools':
+ ensure => purged
+ }
}
}