From 9083bda19ba6c5563f75cd44a35c594011ba91cb Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sat, 9 Jan 2016 14:22:08 +0100 Subject: [PATCH] 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 --- modules/rng-tools/manifests/init.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/rng-tools/manifests/init.pp 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'] + } + } +} -- 2.20.1