Sorry, package["anacron"] is a bad example, since that package doesn't actually provide cron. But it behaves identically with package["cron"].
The issue is as Teyo describes -- the failure occurs before the package resource is ever executed. I get the same error if the package doesn't exist, or isn't defined. seph Teyo Tyree <t...@reductivelabs.com> writes: > Delivered from mobile device. > > On Jul 22, 2009, at 8:40 AM, Nigel Kersten <nig...@google.com> wrote: > >> >> On Wed, Jul 22, 2009 at 8:35 AM, seph<s...@directionless.org> wrote: >>> >>> I'd like to use puppet to manage some cron jobs. Unfortunately, I >>> do not >>> have cron installed on my servers. So, I'd like to use puppet to >>> install >>> cron. Unfortunately, this doesn't seem to work. Puppet complains >>> about >>> the lack of provider before it runs down the dependencies. For >>> example, >>> this ought complain about the lack of package, or install it: >>> >>> r...@puppet-test:~# cat /var/tmp/puppet-cron.pp >>> package{ "anacron": >>> ensure => "latest", >>> } >>> cron {"puppet cron test": >>> command => "echo test", >>> hour => 0, >>> user => "root", >>> require => Package["anacron"], >>> } >>> >>> >>> r...@puppet-test:~# puppet /var/tmp/puppet-cron.pp >>> sh: Syntax error: Bad fd number >>> sh: Syntax error: Bad fd number >>> err: Could not create puppet cron test: Could not find a default >>> provider for cron >>> Could not find a default provider for cron >> >> It looks to me like the crontab provider requires that the command >> 'crontab' exists, and the anacron pacakge I'm looking at doesn't >> supply that. >> >> You should be fine if you install crontab as well, otherwise I think >> we'll need an anacron provider. >> > Is the anacron package even getting installed or is the failure > occuring before the package resource is executed? > >> >>> >>> Any suggestions? >>> >>> seph >>> >>>> >>> >> >> >> >> -- >> Nigel Kersten >> nig...@google.com >> System Administrator >> Google, Inc. >> >> > > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---