On Fri, 10 Jul 2015, Trevor Vaughan wrote:

Hi All,

So, I just ran across this today (because I don't usually purge cron).

https://docs.puppetlabs.com/puppet/3.7/reference/deprecated_resource.html#cron

Which is not mirrored as a caveat in the latest cron resource page (purge
isn't mentioned at all).

https://docs.puppetlabs.com/references/latest/type.html#cron

Fair enough, could you file a docs ticket about that? The deprecation page is static but the type reference is auto-generated from the Puppet source, so there's (sadly) two places that need to change.

Unfortunately, I didn't catch this earlier and what I actually would like
is for cron to purge based on user IDs in the following form:

1) Purge if user matches Array
2) Purge if user not in Array
3) Purge for all users whose crontabs are managed by Puppet, but nobody else

Each of these should be able to accept regexes in the case that you're
running in something like OpenShift and want to ensure that the OpenShift
users can't enable cron jobs.

Thoughts?

I see where you're coming from... but it seems really complicated, especially number 3. Does #2 not work today with the unless_uid param? https://docs.puppetlabs.com/references/latest/type.html#resources-attribute-unless_uid


Eric Sorenson - eric.soren...@puppetlabs.com - freenode #puppet: eric0
puppet platform // coffee // techno // bicycles

Reply via email to