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-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On May 23, 2008, at 10:15 AM, johnson wrote:> > 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.> > 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-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for the reply, Luke. I''ll try to find some workaround and will post it here if I find any. 2008/5/24 Luke Kanies <luke@madstop.com>:> > On May 23, 2008, at 10:15 AM, johnson wrote: > > > > > 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. > > > > > 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-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---