Issue #15513 has been updated by eric sorenson.

Status changed from Unreviewed to Ready for Documentation
Assignee set to Nick Fagerlund

The argument to this can't be an arbitrary directory, it's supposed to be a 
username.

Nick, the type doc on this is not highly obvious:

    newproperty(:target) do
     desc "Where the cron job should be stored.  For crontab-style
      entries this is the same as the user and defaults that way.
      Other providers default accordingly."

There's only one provider, `crontab`, so the "Other providers default 
accordingly" manages to be both vague and misleading at the same time. How 
about something like:

    desc "The username who should own the cron entry. Defaults to 
       the value of $USER for the shell that invoked Puppet, or root if $USER
       is empty"

... or something...?
----------------------------------------
Bug #15513: Resource type 'cron' fails with 'target' parameter
https://projects.puppetlabs.com/issues/15513#change-69160

Author: Marc Richter
Status: Ready for Documentation
Priority: Normal
Assignee: Nick Fagerlund
Category: cron
Target version: 2.7.x
Affected Puppet version: 2.7.13
Keywords: cron, target
Branch: 


`cron { 'foo':
 ensure => present,
 command => '/etc/init.d/foo restart',  
 user => 'root',
 minute => '*/1440',
 target => '/etc/cron.d/foo',
}`

This should create the file '/etc/cron.d/foo'. In the yml report there's 
written that puppet has created the file, but it isn't there.


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