Issue #709 has been updated by Felix Frank.
micah - wrote: > This is an ancient bug, but I am seeing it now. Every run I get this message: > > [...] > The replaced line was incorrect, which generated other errors of course, but > this particular error started happening after I fixed it with what is shown > above. I'm not sure why micah had to implement this "fix" back in the 0.24 day, but I fail to reproduce either issue with 2.7.18. ---------------------------------------- Bug #709: crontab type seems to detect the current environment lines wrong https://projects.puppetlabs.com/issues/709#change-83326 Author: Karl Pietri Status: Accepted Priority: Normal Assignee: Category: cron Target version: Affected Puppet version: 0.24.7 Keywords: cronfixit Branch: <pre> notice: //node1/baseserverrole/webserverrole/webcron/rcron[ntpd_check]/Cron[ntpd_check]/environment: environment changed '[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]' to '[email protected]' </pre> The cron provider seems to think there are more MAILTO's then actually are. As listing the crontab shows: <pre> # Puppet Name: ntpd_check [email protected] */5 * * * * /root/bin/ntpmon > /dev/null 2>&1 </pre> This happens everytime puppetd --test is run. puppet config: <pre> rCron{ ntpd_check: command=>"/root/bin/ntpmon > /dev/null 2>&1", minute=>"*/5", require=>RFile[[rootbinntpmon]] } define rCron($command,$minute=absent,$hour=absent,$monthday=absent,$month=absent,$weekday=absent,$environment="[email protected]"){ cron{ $name: command=>$command, minute=>$minute, hour=>$hour, month=>$month, monthday=>$monthday, weekday=>$weekday, environment=>$environment, user=>root } } </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
