Issue #4528 has been updated by James Turnbull.

Target version set to 2.6.1


----------------------------------------
Bug #4528: cron gets updates everytime if wildcard is set
http://projects.puppetlabs.com/issues/4528

Author: Peter Meier
Status: Ready for Testing
Priority: Normal
Assigned to: 
Category: cron
Target version: 2.6.1
Affected version: 2.6.1rc2
Keywords: 
Branch: http://github.com/duritong/puppet/tree/ticket/2.6.x/4528


The following cronjob:

<pre>
cron{'gpg_crontab':
  command => '/usr/bin/gpg --refresh-keys > /dev/null 2>&1',
  minute => 0,
  hour => 12,
  month => '*',
}
</pre>

Triggers a crontab update on every run:

<pre>
$ puppet foo.pp
notice: /Stage[main]//Cron[gpg_crontab]/month: defined 'month' as '*'
$ puppet foo.pp
notice: /Stage[main]//Cron[gpg_crontab]/month: defined 'month' as '*'
</pre>

puppet should not detect this as a change.

Why anyway defining '*'? There are 2 reasons:

1. unset a previously set weekday, as we want the cronjob now to run everytime.
2. I have manifests 
(http://git.puppet.immerda.ch/?p=module-puppet.git;a=blob;f=manifests/cron/openbsd.pp;h=bca3dc68104834da15fbd8237eeab7ecb1ff102b;hb=9f83acbda5baf8bda129ddddcbe7e8114d5b7b87)
 that generate the invidual cron time paramateres from a string, so users can 
define something like @$puppet_crontime = '0,30 * * * *'@ which will then 
converted into cron resource time parameters.


-- 
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.

Reply via email to