Remove setting env vars in the static_mirror part of puppet-cron
authorPeter Palfrader <peter@palfrader.org>
Mon, 16 Sep 2019 17:03:42 +0000 (19:03 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 16 Sep 2019 17:03:42 +0000 (19:03 +0200)
This was re-setting MAILTO=root, which is already set at the top level,
and it was also setting PATH to only a subset of what it was before
(dropped the sbins).

modules/staticsync/manifests/static_mirror.pp

index bcec311..3f6a8d8 100644 (file)
@@ -31,8 +31,6 @@ class staticsync::static_mirror (
   concat::fragment { 'puppet-crontab--static-mirror':
     target => '/etc/cron.d/puppet-crontab',
     content  => @("EOF"),
-        MAILTO=root
-        PATH=/usr/local/bin:/usr/bin:/bin
         @reboot ${staticsync::user} sleep 60; chronic static-mirror-run-all
         | EOF
   }