- From: Clif Smith <
>
- To:
- Subject: [chef] Re: Re: Is it possible to specify a gem to use within a recipe
- Date: Wed, 11 Apr 2012 14:21:07 -0500
Thanks for the reply, but I don't need to install the gem, it already is.
The problem with the route53 cookbook is it requires a newer version of fog
than what's bundled in the Omnibus chef-client. So, while I have fog v1.3.1
installed on my system, the route53 recipe fails as it uses the bundled fog
v0.8.2. How can I force the route53 recipe to use the non-bundled fog gem?
On Apr 11, 2012, at 12:12 PM, Bryan McLellan wrote:
>
On Wed, Apr 11, 2012 at 11:49 AM, Clif Smith
>
<
>
>
wrote:
>
> I'm using the Omnibus client (0.10.8) and can't use the route53 cookbook
>
> as the client uses an older version of fog (0.8.2) which throws "aws is
>
> not a recognized dns provider". The fix is to use a newer version of fog
>
> (currently at 1.3.1) but how can I reference it in a recipe? Is this the
>
> correct approach?
>
>
The gem_package resource will take a 'version' argument:
>
http://wiki.opscode.com/display/chef/Resources#Resources-Package
>
>
You can read about using a gem in a recipe here:
>
http://www.opscode.com/blog/2009/06/01/cool-chef-tricks-install-and-use-rubygems-in-a-chef-run/
>
>
This will be easier in Chef 0.10.10:
>
http://tickets.opscode.com/browse/CHEF-2879
>
>
Bryan
Archive powered by MHonArc 2.6.16.