seph wrote:
> I'm running on ubuntu. Anyhow, I'm running puppet with only that
> file. Nothing more. So if it needs an explicit service definition, it
> should complain about it. Anyhow I tried it, same error. The cron thing
> fails out before it gets anywhere.
>
> seph
>
>
> Joe McDonagh <[email protected]> writes:
>
>   
>> 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
>>
>>
>>
>>     
>
> >
>   
I think it would be non-trivial to make the provider aware of what 
packages and what services it needs, which it would need to do to tell 
you anything more than the provider can't be found. Is the cron package 
installed after you run the manifest?


And what is the bad FD stuff about? Do you have a crazy .bashrc or 
something?

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to