- From: Dreamcat4 <
>
- To:
- Subject: [chef] Re: Re: Re: Re: definition of languages[:ruby][:gems_dir] ?
- Date: Sun, 21 Nov 2010 18:06:29 +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=wZQVraC4cI4WJqkmX/VZ+KZZdtwY5tTruKWfEfuOQPuwaT7fVtwmp+x7tfWxSBCMlz zomG+TqJaknD2Vfk+/NSbtxDOHhXMQhGQ3IQlB90o35qLzkBkhu8vp6106nnaxcP95rM qGflhERdbslfOpB6CFP2u5dZ1VQykzElqdz28=
On Sun, Nov 21, 2010 at 12:36 PM, Raphael Bauduin
<
>
wrote:
>
On Sat, Nov 20, 2010 at 8:22 PM, Dreamcat4
>
<
>
>
wrote:
>
> 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.
>
>
ok, thx for the info
>
>
>
>
> We should notify Richard at DevStructure too.
>
>
>
>
As I'm still discovering the community, I'll let you do it :-)
Repackaged / rebuilt. The download link is the same as before:
http://dl.dropbox.com/u/588496/maverick32.box
Its should solve the missing language[:ruby] problem reported here.
>
>
Raph
>
>
>>
>
>> 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
>
>>
>
>
>
>
>
>
--
>
Web database: http://www.myowndb.com
>
Free Software Developers Meeting: http://www.fosdem.org
>
Archive powered by MHonArc 2.6.16.