]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/entropykey/manifests/provider.pp
Apply Aurelien's nfs patch to the dsa-check-libs copy in puppet also
[dsa-puppet.git] / modules / entropykey / manifests / provider.pp
index 8db64893081f6ef30bb7490a5765b1663f55c8a3..d69ac22195392effe231a2253ac25a510d67c9c9 100644 (file)
@@ -11,13 +11,16 @@ class entropykey::provider {
        # our CRL expires after a while (2 or 4 weeks?), so we have
        # to restart stunnel so it loads the new CRL.
        file { '/etc/cron.weekly/stunnel-ekey-restart':
-               content => '#!/bin/sh\n# This file is under puppet control\nenv -i /etc/init.d/stunnel4 restart puppet-ekeyd > /dev/null\n',
+               content => "#!/bin/sh\n# This file is under puppet control\n# weekly restart of stunnel on ${::hostname}\nenv -i chronic /etc/init.d/stunnel4 restart puppet-ekeyd\n",
                mode    => '0555',
        }
 
        service { 'ekeyd':
                ensure  => running,
-               require => File['/etc/entropykey/ekeyd.conf'],
+               require => [
+                       File['/etc/entropykey/ekeyd.conf'],
+                       Package['ekeyd']
+               ]
        }
 
        stunnel4::server { 'ekeyd':