+------------------------------------------------------------------------------ | On 2010-12-17 10:38:54, Don Jackson wrote: | | I was attempting to set up some cron jobs via puppet. | | I was trying to get cron to mail the output of the cron jobs to a specific user, so I was | attempting to set mailto=u...@example.com, via the environment => specifier. | | Puppet did as it was told. | | Unfortunately, I guess that Solaris 10 does not support setting of environment variables in crontab files (directly), so | when puppet attempted to install the generated crontab, the "crontab install command" failed, and without an error or warning.
Solaris cron is pretty awful. I would suggest using rjbs's cronjob[1] command (App::cronjob on the CPAN) to wrap your commands. It does many useful things and makes cron on Solaris not entirely hateful. | Also, FYI, I guess Solaris 10 doesn't support the MAILTO env variable anyway, so that is my problem. | | I changed my manifest, and all is working now, but | | a) wanted to document this on the mailing list in case someone else goes down this path | b) this might be a bug in the solaris10 cron implementation of puppet?. Solaris cron itself is a bug. It's just old, and gets no love. (Replacing it proved to be so onerous rjbs wrote the aforementioned cronjob.) Well... it's gotten some love in illumos, which now supports MAILTO and various other things you seen in modern cron. But that isn't going to help those of us running Solaris 10. :-) [1] http://advent.rjbs.manxome.org/2009/2009-12-07.html -- bdha cyberpunk is dead. long live cyberpunk. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.