Puppet: System Administration Automated

Support

Ticket #692 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

puppet duplicates crontab entries if there are manually entered lines

Reported by: lluis Assigned to: luke
Priority: normal Milestone: beaker
Component: library Version: 0.23.0
Severity: normal Keywords: cron crontab duplicate
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Unknown

Description

After upgrade to 0.23.0, puppet started to duplicate crontab entries on hosts where crontab had manually entered lines, here an example:

# HEADER This file was autogenerated at Wed Jun 27 05:20:55 CEST 2007 by puppet.
# HEADER While it can still be managed manually, it is definitely notrecommended.
# HEADER Note particularly that the comments starting with 'Puppet Name' should
# HEADER not be deleted, as doing so could cause duplicate cron jobs.
# Backups incrementals dos cops al dia
0 15,22 * * * /usr/local/arxiver/fileserver/src/shell/backup-incremental.sh >> /var/log/arxiver 2>&1
#05 16 * * * /usr/local/arxiver/fileserver/src/shell/backup-incremental.sh >> /var/log/arxiver 2>&1
# Puppet Name: puppet_restart
10 5 * * * /usr/local/sbin/puppet-restart.sh
# Puppet Name: puppet_restart
10 5 * * * /usr/local/sbin/puppet-restart.sh
(...)

to avoid this we had to move manually entered lines to the bottom of the file.

Change History

06/27/07 11:19:32 changed by lluis

puppet is also showing this error at logs:

debug: Prefetching crontab resources for cron err: Could not prefetch "NilClass"rovider crontab: undefined method `each' for nil:NilClass

we are using Fedora Core 4

07/04/07 21:28:03 changed by luke

  • status changed from new to assigned.
  • stage changed from Unreviewed to Accepted.
  • milestone set to beaker.

07/18/07 19:40:44 changed by luke

  • status changed from assigned to closed.
  • resolution set to fixed.

This should be fixed as part of #705.