Puppet: System Administration Automated

Support

Ticket #739 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Cron doesn't like comma seperated hours/minutes -> failure to add cron entry

Reported by: verwilst Assigned to: luke
Priority: normal Milestone:
Component: client Version: 0.22.4
Severity: normal Keywords: cron
Cc: Triage Stage: Needs more info
Attached Patches: None Complexity: Unknown

Description (Last modified by luke)

Hi!

I have a cron entry like this:

cron { "cron-ntpdate":
    command => "/usr/bin/ntpdate ntp.belbone.be",
    minute => 00,
    ensure => present,
    user => "root"
}

In my crontab -e , i already have this:

# Line below polls for Avast! update - running avastvpsupdate.pl or avastvpsupdate.sh periodically does the job.
# Libavastengine installer: testing of avastvpsupdate.pl failed - if You want to use this script, fix the problem and enable the line below.
# 0 0,6,12,18 * * * /usr/bin/avastvpsupdate.pl
 0 0,6,12,18 * * * /usr/bin/avastvpsupdate.sh

When running puppetd, this error is given:

notice: Cron[cron-ntpdate]/ensure: created
"-":7: bad day-of-week
errors in crontab file, can't install.

Commenting the " 0 0,6,12,18 * * * /usr/bin/avastvpsupdate.sh" line in my crontab -e, and rerunning puppetd adds the ntpdate cron just fine.

Change History

08/01/07 00:03:02 changed by luke

  • description changed.
  • stage changed from Unreviewed to Needs more info.

Can you confirm that this is still a problem in 0.23.1?

11/24/07 05:44:00 changed by luke

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

I'm going to assume this is fixed, since I haven't heard back.