]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Show full error messages when there is a problem restarting stunnel.
authorPaul Wise <pabs@debian.org>
Tue, 14 Oct 2014 02:30:13 +0000 (10:30 +0800)
committerPaul Wise <pabs@debian.org>
Tue, 14 Oct 2014 02:31:47 +0000 (10:31 +0800)
modules/entropykey/manifests/provider.pp

index f567e5566717374f5a858de111732f7882764c19..ea8cb5bdf130c3918136a7547aafc99c86bfce02 100644 (file)
@@ -11,7 +11,7 @@ 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\n# weekly restart of stunnel on ${::hostname}\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 /etc/init.d/stunnel4 restart puppet-ekeyd | grep -vF 'Restarting SSL tunnels: [stopped: /etc/stunnel/puppet-ekeyd.conf] [Started: /etc/stunnel/puppet-ekeyd.conf] stunnel.'\n",
                mode    => '0555',
        }