Discussion:
[Puppet Users] manage cron jobs
johnson
2008-05-23 15:15:24 UTC
Permalink
Hi All,

is it possible to delete cronjobs by patterns using 'cron' resource?
I.e. I want to make sure that there is no any cronjob that contains "/
path/to/some/unneeded_file" command in root crontab without knowing
the command possible parameters and schedule.

If no, any suggestions about how it can be performed are welcome.

Thanks in advance

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-***@googlegroups.com
To unsubscribe from this group, send email to puppet-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-05-24 17:22:27 UTC
Permalink
Post by johnson
Hi All,
is it possible to delete cronjobs by patterns using 'cron' resource?
I.e. I want to make sure that there is no any cronjob that contains "/
path/to/some/unneeded_file" command in root crontab without knowing
the command possible parameters and schedule.
No, it's currently not possible.
Post by johnson
If no, any suggestions about how it can be performed are welcome.
The only thing close is using the 'resources' type to purge unmanaged
cron jobs, but that would remove all unmanaged cron jobs from all
users, which is probably not what you want.
--
Tradition is what you resort to when you don't have the time or the
money to do it right. -- Kurt Herbert Alder
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-***@googlegroups.com
To unsubscribe from this group, send email to puppet-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Paul Johnson
2008-05-25 07:18:02 UTC
Permalink
Thanks for the reply, Luke. I'll try to find some workaround and will post
it here if I find any.
Post by Luke Kanies
Post by johnson
Hi All,
is it possible to delete cronjobs by patterns using 'cron' resource?
I.e. I want to make sure that there is no any cronjob that contains "/
path/to/some/unneeded_file" command in root crontab without knowing
the command possible parameters and schedule.
No, it's currently not possible.
Post by johnson
If no, any suggestions about how it can be performed are welcome.
The only thing close is using the 'resources' type to purge unmanaged
cron jobs, but that would remove all unmanaged cron jobs from all
users, which is probably not what you want.
--
Tradition is what you resort to when you don't have the time or the
money to do it right. -- Kurt Herbert Alder
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-***@googlegroups.com
To unsubscribe from this group, send email to puppet-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Loading...