seph wrote: > Still fails for me. Perhaps it changed in some puppet version? > > r...@puppet-test:~# puppet -V > 0.24.8 > > r...@puppet-test:~# cat /var/tmp/puppet-cron.pp > package{ "cron": > ensure => "latest", > } > > Cron { > require => [ Package["cron"], Service["cron"] ], > } > > cron {"puppet cron test": > command => "echo test", > hour => 0, > user => "root", > } > > 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 > > seph > > Joe McDonagh <joseph.e.mcdon...@gmail.com> writes: > > >> You need to require both the package and service in all your cron >> resources. So, best thing to do is set it in your site.pp like Cron { >> require => [ Package["cron"], Service["cron"] ] }. >> > > > > Where is your cron service definition? You'll need something like:
service { "cron": ensure => "running", require => Package["cron"]; } That is of course, how ubuntu does it. I've been away from my native land (rh) for a while and can't remember if that's the service name in rh-land. -- Joe McDonagh Operations Engineer www.colonfail.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---