Feature #746
Provide support for /etc/crontab files as a type
| Status: | Accepted | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | cron | |||
| Target version: | unplanned | |||
| Complexity: | Unknown |
Patch: | None |
|
| Affected version: | Keywords: | |||
Description
Provide support for managing cron job through /etc/crontab.
*Former bug text:
*Under darwin, the root user is usually disabled, thus it's crontab does not work.
As a work around it is possible to create those jobs in /etc/crontab
I did not look into the cron provider, but I guess the change to the code is minimal.
thanks.
History
08/05/2007 09:14 PM - luke
You would need to create a new provider for managing /etc/crontab. It might seem minimal, but managing cron jobs has turned out to be one of the most complicated types in Puppet.
08/09/2007 05:06 PM - do
I think I have to object to the statement above.
The only difference in /etc/crontab to the user's crontabs is that in the first case we have to specify the user under which a certain task is run.
Since puppet generates the crontab entry anyway, the change is not very huge. The user (which is given anyway) has to be added at the right position in the crontab line.
I do not think it is a good idea to start splitting up the cron provider into 2. This would introduce a lot mor complexity than is actually desired, I guess.
One issue remains, though: we do not want do delete or overwrite already existing crontab entries.
Why not user the "bracket editor" for this?
I still did not have the rime to look into this provider. I found a workaround, so maybe I simply do not understand the complexity of this provider.
11/24/2007 06:04 AM - luke
- Status changed from 1 to Closed
- 7 set to invalid
Well, the file format is different, and you can't use the 'crontab' command to edit /etc/crontab, so the behaviour is pretty different. The formats are similar but not the same.
This ticket is both an enhancement request and a bug report that can be fixed pretty easily by enabling the root user, so in either case the ticket isn't appropriate. Feel free to open an enhancement request for /etc/crontab support.
06/17/2008 12:55 PM - jamtur01
- Subject changed from disabled root user's crontab does not work under darwin to Provide support for /etc/crontab files as a type
- Status changed from Closed to Unreviewed
- Target version deleted (
unplanned)
06/21/2008 12:57 PM - Fujin
- Category set to cron
- Status changed from Unreviewed to Accepted
- Assigned to changed from luke to community
- Target version set to unplanned
This would require munging of the existing crontab provider, or a munged copy of it to support the different format for /etc/crontab. If someone is interested in getting this functionality, please supply code+tests. Thanks!