[chef] Re: Re: definition of languages[:ruby][:gems_dir] ?


Chronological Thread 
  • From: Dreamcat4 < >
  • To:
  • Subject: [chef] Re: Re: definition of languages[:ruby][:gems_dir] ?
  • Date: Sat, 20 Nov 2010 19:22:26 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=TA74wv+wuTN+CekwzsKmbRLBN6s0aCp8fMeOOGFa/D9GUsnJyfnSxIY9MMxaqxiQha 5CTt41HlATh09kjhJHFtxcN8PnpygaW6zDhxzC1NkU6/MR5Lyz088QAoPHuyyBwHZ7Aa wVvbKW4yRWhqTH9Aqocjg621BxjkTu5RnO8A4=

On Sat, Nov 20, 2010 at 5:42 PM, Raphael Bauduin 
< >
 wrote:
> On Sat, Nov 20, 2010 at 5:17 PM, Raphael Bauduin 
> < >
>  wrote:
>> Hi,
>>
>> I'm still trying to get up to speed with Chef. I'm using knife to get
>> my cookbooks from opscode's server.
>> The passenger_apache cookbook uses languages[:ruby][:gems_dir], but I
>> don't find it defined anywhere. How can I know which cookbook in the
>> repository sets the value of this? I haven't read anywhere that I'm
>> supposed to set it myself.
>> I grep'd in my clone of the github repo, but still without success.
>> But IIRC, the passenger installation was running fine with these
>> cookbooks (I had to switch to knife for other reasons).
>
>
> Seems this is set by ohai since version 0.3.0:
> http://tickets.opscode.com/browse/OHAI-81?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
>
> I'm running version 0.5.8 (on ubuntu 10.10), but the ruby hash when
> calling ohai  is still empty:
>   "ruby": {
>    }

Hmm...

There was a similar issue where languages[:java] was missing
entirely (=nil). On the Tomcat6 cookbook.

Raised as issue COOK-403

http://tickets.opscode.com/browse/COOK-403

>
> any idea on how to fix this?

I recon that in the case of Tomcat6 cookbook - it was because Java
wasn't installed on the system. And therefore logically the
languages[:java] attributes could not be populated by ohai. So
thats an assumption in the attributes file for Tomcat6 cookbook.

In your particular case - im guessing that your using the maverick32.box
file? We have discovered that particular base image doesnt come with
the ruby metapackage.

It seems reasonable to assume that the Ruby language is already
installed since chef relies upon ruby. And because ohai runs at the
start of a chef run - it should be installed there in the base image.

This is prompting me to remake the maverick.box file with the missing
ruby metapackage.

We should notify Richard at DevStructure too.

>
> thanks
>
> Raph
>
>>
>> Thanks in advance
>>
>> Raph
>>
>> --
>> Web database: http://www.myowndb.com
>> Free Software Developers Meeting: http://www.fosdem.org
>>
>
>
>
> --
> Web database: http://www.myowndb.com
> Free Software Developers Meeting: http://www.fosdem.org
>



Archive powered by MHonArc 2.6.16.

§