[chef] Re: Re: Re: Re: making a library global?


Chronological Thread 
  • From: Ringo De Smet < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: making a library global?
  • Date: Tue, 20 Jul 2010 10:44:39 +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=UEtJ1HfPVlj+1+WaaayyWV2FToarL29jw+bb5KsSX1ZDV2PMNRmh+Tr16I3gTwb45f urVUsvP3ZQTGR56PvvbcyHZkuL7uv/jkSUjxaWua3MAkFmZY4Mj9hSiXk8nfkZTnUk/k qOcdEuXohG5DdLLcDUOtv77qbhDqfvOA5v35U=

On 20 July 2010 08:37, Ringo De Smet 
< >
 wrote:
>
> 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!
>

After re-reading the wiki, I found out that the mapping is handled in
Chef::Platform. In my library file, I added the following line:

Chef::Platform::platforms[:default][:pylabs_qshell] =  Chef::Provider::Script

Don't know if this is the proper way to do it, but it seems to work.
My script seems to launch (except for errors in the script itself now
:-) ).

Ringo



Archive powered by MHonArc 2.6.16.

§