Issue #11383 has been updated by Felix Frank.

Assignee set to Nigel Kersten

I'd go so far as to claim that this is actually a duplicate of #3220.

If the goal of this one should actually become to parse all user crontabs for 
purging, that would likely require a design decision.

Nigel, I hope it's fine to push this one to you, it's almost the last blocker 
for #6990.

----------------------------------------
Bug #11383: cron type and provider only return resources for ENV["USER"] or 
"root", not all users
https://projects.puppetlabs.com/issues/11383#change-99757

* Author: Nick Jenkin
* Status: Accepted
* Priority: Normal
* Assignee: Nigel Kersten
* Category: cron
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
When using resources { cron: purge => true }, only the root users crontab is 
purged.

This works:
<pre>
cron {"foo":
        command => "ls",
        ensure => present,
        user => root,
}
</pre>

(and then proceed to comment the above out):
`notice: /Cron[foo]/ensure: removed`

This does not work:
<pre>
cron {"bar":
        command => "ls",
        ensure => present,
        user => nick,
}
</pre>

This crontab will still exist if commented out.

Broken in 2.6 and latest stable.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to