From: Aurelien Jarno Date: Sat, 9 Jan 2016 13:22:08 +0000 (+0100) Subject: Install rng-tools if there is a /dev/hwrng device X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9083bda19ba6c5563f75cd44a35c594011ba91cb;p=mirror%2Fdsa-puppet.git Install rng-tools if there is a /dev/hwrng device We can then provide entropy to the guests using virtio-rng. Signed-off-by: Aurelien Jarno --- diff --git a/modules/rng-tools/manifests/init.pp b/modules/rng-tools/manifests/init.pp new file mode 100644 index 000000000..795bb1a35 --- /dev/null +++ b/modules/rng-tools/manifests/init.pp @@ -0,0 +1,11 @@ +class rng-tools { + if FileTest.exist?("/dev/hwrng") { + package { 'rng-tools': + ensure => installed + } + service { 'rng-tools': + ensure => running, + require => Package['rng-tools'] + } + } +}