Issue #656 has been updated by Felix Frank.

For what it's worth, I cannot reproduce any more.

<pre>
ffrank@hypnos:/tmp$ crontab -l 
# HEADER: This file was autogenerated at Fri Feb 15 15:12:42 +0100 2013 by 
puppet.
# HEADER: While it can still be managed manually, it is definitely not 
recommended.
# HEADER: Note particularly that the comments starting with 'Puppet Name' should
# HEADER: not be deleted, as doing so could cause duplicate cron jobs.
ffrank@hypnos:/tmp$ cat cronbug.pp 
cron { hourly-puppet:
                command => "/usr/bin/puppet \
                        --use-nodes /etc/puppet/manifests/site.pp \
                        --logdest $logdest",
                user => ffrank,
                minute => 48,
        }
ffrank@hypnos:/tmp$ puppet apply cronbug.pp 
notice: /Stage[main]//Cron[hourly-puppet]/ensure: created
notice: Finished catalog run in 0.12 seconds
ffrank@hypnos:/tmp$ puppet apply cronbug.pp 
notice: Finished catalog run in 0.05 seconds
ffrank@hypnos:/tmp$ puppet --version
2.7.18
</pre>

I believe this issue can be safely rejected by now.
----------------------------------------
Bug #656: cron entries with newlines keep being updated
https://projects.puppetlabs.com/issues/656#change-83320

Author: Tobu -
Status: Accepted
Priority: Normal
Assignee: 
Category: cron
Target version: 
Affected Puppet version: 0.24.7
Keywords: cronfixit
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to