Hi Peter,
Peter Meier schrieb:
>> i am using puppet 0.25.4 at debian lenny and i have got a question about
>> the cron type. If i use something like that, the cron will be stored at
>> "/etc/cron.daily/get-selections".
>
>> cron { "get-slections":
>> command => "/usr/bin/dpkg --get-selections >
>> /var/backups/get-selections.log",
>> user => root,
>> minute => 0,
>> }
>
> shouldn't that go into cron.hourly?
>
>> But if i use an explicit hour, the cron will be stored at
>> "/var/spool/cron/crontabs/root" instead of "/etc/cron.d/get-selections".
>
>> cron { "get-slections":
>> command => "/usr/bin/dpkg --get-selections >
>> /var/backups/get-selections.log",
>> user => root,
>> hour => 8,
>> minute => 0,
>> }
>
>> Of course i could use the file type to ship my cron jobs, but that makes
>> no sense to me. Any hints?
>
> to understand your question: You want that crons without an hour and
> minute to 0 should be placed in cron.hourly while everything else should
> go into crontab?
>
> Then cron-Type manages the crontab of a user, while others should be
> rather managed by file resources. You could tweak the cron provider to
> achieve what you like to do. However: Why do you want such a behavior?seems that i am a little bit confused. I have no idea where the file at "/etc/cron*" was comming from. All my actual tests will lead to an cron at "/var/spool/cron/crontabs/root". Nevertheless, i prefer crons at "/etc/cron*" via the file type. Thx and have a nice evening. Regards, Dennis
signature.asc
Description: OpenPGP digital signature
