Issue #2127 has been updated by Nigel Kersten. Status changed from Accepted to Rejected
We have more serious issues with the cron provider, and given the existence of a simple workaround, I'm going to be somewhat heartless and reject this one. ---------------------------------------- Bug #2127: cron resource adds newline when compiled from a template https://projects.puppetlabs.com/issues/2127 Author: Phil Schwartz Status: Rejected Priority: Low Assignee: Category: cron Target version: Statler Affected Puppet version: 0.24.7 Keywords: Branch: If the template consists of a single line that does not end with a templated variable or ruby code snippet then a newline is added to the cron command. This causes an issue when puppet reapplies it's configuration since it always compares "cmd" with "cmd\n" and thus recreates the crontab each time it runs. if template contains "/bin/true" then a newline is appended. However, if the template ends with a -%> then the newline is suppressed, so the following workaround suffices "/bin/true <% "" -%>. This hack isn't elegant nor obvious, but it appears to work. -- 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.
