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 <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---