Install rng-tools if there is a /dev/hwrng device
[mirror/dsa-puppet.git] / modules / rng-tools / manifests / init.pp
1 class rng-tools {
2         if FileTest.exist?("/dev/hwrng") {
3                 package { 'rng-tools':
4                         ensure => installed
5                 }
6                 service { 'rng-tools':
7                         ensure  => running,
8                         require => Package['rng-tools']
9                 }
10         }
11 }