Issue #16318 has been updated by Stefan Schulte. Status changed from Accepted to Duplicate
Marking as duplicate because it is already covered by #14082, #5979 and #1453 ---------------------------------------- Bug #16318: Cron provider doesn't reset removed parameters https://projects.puppetlabs.com/issues/16318#change-72818 Author: Ashley Penney Status: Duplicate Priority: Normal Assignee: Category: cron Target version: Affected Puppet version: Keywords: cron Branch: I'm not 100% sure this is a bug so I wanted to solicit some feedback from others. The problem is that if you have a cron that manages hours and remove that parameter it doesn't reset the hours to * which is really what I think it should do if you don't include one, start from *. I can see there could be arguments for leaving existing parameters alone if untouched but generally if I'm removing the hour it's because I want it to reset to *. <pre> contents of test.pp: cron { 'test-cron': command => 'echo radical', hour => '*/1', minute => '59', } [root@per5-ashp-shell1 tmp2]# puppet apply test.pp notice: /Stage[main]//Cron[test-cron]/ensure: created Lines in crontab: # Puppet Name: test-cron 59 */1 * * * echo radical cron { 'test-cron': command => 'echo different command', minute => '30', } [root@per5-ashp-shell1 tmp2]# puppet apply test-new.pp notice: /Stage[main]//Cron[test-cron]/command: command changed 'echo radical' to 'echo different command' notice: /Stage[main]//Cron[test-cron]/minute: minute changed '59' to '30' Lines in crontab: # Puppet Name: test-cron 30 */1 * * * echo different command I feel like if puppet is managing the entire entry then it should not just leave whatever the parameter was last set to, but others may disagree. -- 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.
