Issue #3938 has been updated by Nigel Kersten. Status changed from Needs More Information to Rejected
We do pass the crontab contents in to stdin to crontab. I'm going to reject this specific bug as our planned provider for /etc/cron.d entries on Linux will largely resolve it, and we don't have a feasible solution for the existing cross-platform provider other than the stdin. ---------------------------------------- Bug #3938: cron resource unreliable https://projects.puppetlabs.com/issues/3938 Author: Marcin Deranek Status: Rejected Priority: Normal Assignee: Category: cron Target version: unplanned Affected Puppet version: 0.24.8 Keywords: cron Branch: Currently we had an accident with cron resource object. One night non-puppet maintained cronjobs (puppet maintained "survived") disappeared from crontab. After some investigation we most likely found the cause: this has to do with a way how crontab entries are added/modified on Linux platform. As far as I can see puppet opens pipe to crontab command and passes entries to it over pipe. When pipe get broken/closed for whatever reason crontab considers that as the end of crontab and updates it. In case when puppetd gets killed it might happen that pipe get broken in the middle and all non-puppet maintained entries will vanish - this is what happened to us (weekly rotatelogs cronjob). Part of the problem is described in http://projects.puppetlabs.com/issues/2462#note-7 as cron resource had '*' in it which triggered crontab update at every puppetd run - we haven't changed resource although puppet considered resource as changed every time. -- 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
