Definition of languages?


#1

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).

Thanks in advance

Raph


Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org


#2

On Sat, Nov 20, 2010 at 5:17 PM, Raphael Bauduin rblists@gmail.com 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”: {
}

any idea on how to fix this?

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


#3

On Sat, Nov 20, 2010 at 5:42 PM, Raphael Bauduin rblists@gmail.com wrote:

On Sat, Nov 20, 2010 at 5:17 PM, Raphael Bauduin rblists@gmail.com 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


#4

On Sat, Nov 20, 2010 at 8:22 PM, Dreamcat4 dreamcat4@gmail.com wrote:

On Sat, Nov 20, 2010 at 5:42 PM, Raphael Bauduin rblists@gmail.com wrote:

On Sat, Nov 20, 2010 at 5:17 PM, Raphael Bauduin rblists@gmail.com 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 :slight_smile:

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


#5

On Sun, Nov 21, 2010 at 12:36 PM, Raphael Bauduin rblists@gmail.com wrote:

On Sat, Nov 20, 2010 at 8:22 PM, Dreamcat4 dreamcat4@gmail.com wrote:

On Sat, Nov 20, 2010 at 5:42 PM, Raphael Bauduin rblists@gmail.com wrote:

On Sat, Nov 20, 2010 at 5:17 PM, Raphael Bauduin rblists@gmail.com 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 :slight_smile:

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