Format weekly stunnel restart script nicer
authorPeter Palfrader <peter@palfrader.org>
Tue, 3 Oct 2017 10:51:19 +0000 (12:51 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 3 Oct 2017 10:52:05 +0000 (12:52 +0200)
modules/entropykey/manifests/provider.pp

index d69ac22..366c06f 100644 (file)
@@ -11,7 +11,12 @@ 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 chronic /etc/init.d/stunnel4 restart puppet-ekeyd\n",
+               content => @("EOF"),
+                               #!/bin/sh
+                               # This file is under puppet control
+                               # weekly restart of stunnel so it learns about the new CRL
+                               env -i chronic /etc/init.d/stunnel4 restart puppet-ekeyd
+                               | EOF
                mode    => '0555',
        }