Hello, 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, } 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? Regards, Dennis
-----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 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.
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