Puppet: System Administration Automated

Support

Ticket #656 (new defect)

Opened 2 years ago

Last modified 9 months ago

cron entries with newlines keep being updated

Reported by: Tobu Assigned to: luke
Priority: normal Milestone: elmo
Component: cron Version: 0.22.4
Severity: minor Keywords:
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Unknown

Description

Here is the puppet snippet I use:

class standalone-puppet {
        $logdest = "/var/log/puppet/cron.log"
        cron { hourly-puppet:
                command => "/usr/bin/puppet \
                        --use-nodes /etc/puppet/manifests/site.pp \
                        --logdest $logdest",
                user => root,
                minute => 48,
        }
}

Every time puppet runs and updates the cronjob, on debian, it updates the cron entry:

notice: //default/standalone-puppet/Cron[hourly-puppet]/command: command changed '/usr/bin/puppet --use-nodes /etc/puppet/manifests/site.pp --logdest /var/log/puppet/cron.log' to '/usr/bin/puppet                         --use-nodes /etc/puppet/manifests/site.pp                         --logdest /var/log/puppet/cron.log'

I'm not sure the problem is on puppet or crontab's side, but it would be nice to prevent this. Also, maybe there is a better technique for writing long strings - here documents?

Change History

06/02/07 20:28:40 changed by Tobu

  • severity changed from normal to minor.

07/04/07 21:13:34 changed by luke

  • stage changed from Unreviewed to Accepted.
  • milestone set to elmo.

04/24/08 06:55:45 changed by luke

  • component changed from library to cron.