- From: Bryan McLellan <
>
- To:
- Subject: [chef] Re: Is it possible to specify a gem to use within a recipe
- Date: Wed, 11 Apr 2012 13:12:56 -0400
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.