Issue #2127 has been updated by luke. Status changed from Unreviewed to Rejected
There isn't much Puppet can do about this - it's not going to know when you want the newline from your template and when you don't. The only possible option is that you maintain the template so that it produces exactly what you want; in this case, that means finding a way to remove the newline. ---------------------------------------- Bug #2127: cron resource adds newline when compiled from a template http://projects.reductivelabs.com/issues/2127 Author: gwar9999 Status: Unreviewed Priority: Normal Assigned to: Category: cron Target version: Complexity: Trivial Affected version: 0.24.7 Keywords: 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
