Issue #656 has been updated by Luke Kanies.

Assigned to deleted (Luke Kanies)


----------------------------------------
Bug #656: cron entries with newlines keep being updated
http://projects.puppetlabs.com/issues/656

Author: Tobu -
Status: Accepted
Priority: Normal
Assigned to: 
Category: cron
Target version: unplanned
Patch: None
Affected version: 0.24.7
Keywords: 
Branch: 


Here is the puppet snippet I use:
<pre>
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,
        }
}
</pre>

Every time puppet runs and updates the cronjob, on debian, it updates the cron 
entry:
<pre>
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'
</pre>

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?



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