-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

> 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?

cheers pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxkOEYACgkQbwltcAfKi39DnQCgoDuzF2hBoGB+HbZisCikfDBt
nKMAni96oO7LnsiF6vSleV9QC5xH1vG6
=jDP/
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to