Issue #1724 has been updated by micah -.
Hi Nigel, I saw that you marked this as a duplicate... what is it a duplicate of? Its a pretty old ticket, so I'm surprised that there was a ticket that was before it that it was a duplicate of! ---------------------------------------- Bug #1724: removing time from cron doesn't update crontab entry https://projects.puppetlabs.com/issues/1724 Author: micah - Status: Duplicate Priority: Low Assignee: Category: cron Target version: Affected Puppet version: 0.24.5 Keywords: Branch: I had the following cron config: <pre> cron { "update_sanesecurity": command => "/usr/local/sbin/unofficial-sigs.sh &>/dev/null", user => root, hour => 2, minute => 5; </pre> This results in a crontab entry as follows: <pre> # Puppet Name: update_sanesecurity 5 2 * * * /usr/local/sbin/unofficial-sigs.sh &>/dev/null </pre> I decided that I needed this to run every hour, instead of at 2am. So I removed the hour line. This didn't change the crontab entry as I expected, I was expecting the crontab entry to be changed to be: <pre> # Puppet Name: update_sanesecurity 5 * * * * /usr/local/sbin/unofficial-sigs.sh &>/dev/null </pre> Why did I expect this to happen? Well, because if I define a new crontab in puppet, and do not include the hour, thats how it will show up. -- 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.
