[chef] Re: application cookbook, ruby 1.9, rails 3.1.0, mysql gem not getting installed?


Chronological Thread 
  • From: Joshua Timberman < >
  • To:
  • Subject: [chef] Re: application cookbook, ruby 1.9, rails 3.1.0, mysql gem not getting installed?
  • Date: Tue, 6 Sep 2011 12:29:39 -0600

Hello,

On Sep 5, 2011, at 11:39 PM, Denis Haskin wrote:
> All seems good *except* that the mysql gem is not getting installed (or not
> getting installed early enough?) and so the process fails when the database
> master role tries to create the database, for which it is apparently using
> the mysql gem (specifically: "INFO: Processing mysql_database[create
> zmx_staging] action create_db (database::master line 84)").


The mysql::client recipe that handles installing the MySQL ruby libraries 
will install them as a package on debian/ubuntu and redhat-family distros. We 
should probably make it a gem installation on all platforms because of this 
particular issue.

To fix, you can replace the if block from line 43-61[0] in the mysql::client 
recipe with:

   gem_package "mysql" do
    action :install
  end

[0]: in version 1.2.0, the current release on community.opscode.com.

-- 
Opscode, Inc
Joshua Timberman, Director of Training and Services
IRC, Skype, Twitter, Github: jtimberman




Archive powered by MHonArc 2.6.16.

§