- From: Raphael Bauduin <
>
- To:
- Subject: [chef] Re: Re: Re: definition of languages[:ruby][:gems_dir] ?
- Date: Sun, 21 Nov 2010 13:36:43 +0100
- 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:content-transfer-encoding; b=gVSBd1I1LWUG03Wt3R7/U+mnPWKAIofRqzztRru3INzuDCf+wzOAi9gCrFbjBtkC4P 9UE94ffIVWa4uz9efT25G51I7to/I5anOjlaBtOSXxKz+1Z41lks0NkCzuSZFeerOe8B ryLSfCG0GQPNUJClL5m12FQYaVYgpUknoDrG4=
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 :-)
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.