- From: Ringo De Smet <
>
- To:
- Subject: [chef] Re: Re: Re: Re: making a library global?
- Date: Tue, 20 Jul 2010 08:37:57 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Ef2OmyQraX6MqLTnE2jFfJX0BZoKUibnBiMJyer3nOlABoBW2FjQiAfbcMvw8zIISU dZfrF05lqS09Z63QF+DGr2pPQ5Gid1+Vnnzn9iKc/anUo/qIRQAcKlQzsJSWLR+rtM1s YyrI0Q/1WVP9Rul9Yjk//0m7tCP/GAc+5xyMw=
Dan,
On 19 July 2010 17:52, Daniel DeLeo
<
>
wrote:
>
Resources are looked up by finding a constant defined on
>
Chef::Resource matching the CamelCased name of the method you called,
>
so calling pylabs_qshell causes chef to look for
>
Chef::Resource::PylabsQshell. I'm not sure what the resource_name is
>
used for, but it doesn't manipulate the way the method names map to
>
resource classes.
I now passed the Resource problem, but the following error is that no
provider could be found that matches it:
2010-07-20_06:27:14.86605 [Tue, 20 Jul 2010 08:27:14 +0200] ERROR:
Running exception handlers
2010-07-20_06:27:14.86606 [Tue, 20 Jul 2010 08:27:14 +0200] ERROR:
Exception handlers complete
2010-07-20_06:27:14.86606 [Tue, 20 Jul 2010 08:27:14 +0200] ERROR:
Re-raising exception: ArgumentError - Cannot find a provider for
pylabs_qshell[install_devtools] on ubuntu version 10.04
2010-07-20_06:27:14.86608
/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/platform.rb:328:in
`find_provider'
2010-07-20_06:27:14.86609
/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/platform.rb:256:in
`find_provider_for_node'
2010-07-20_06:27:14.86610
/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/runner.rb:39:in
`build_provider'
I didn't create a provider, as my resource inherits from the Script
resource. As far as I can see, my script resource is similar to the
Python and Bash script resource that have a specific provider neither.
Why is this happening? I am really struggling to make progress here!
Ringo
Archive powered by MHonArc 2.6.16.