[chef] Re: Re: chef_gem vs gem_package vs the conundrum


Chronological Thread 
  • From: Leif Madsen < >
  • To:
  • Subject: [chef] Re: Re: chef_gem vs gem_package vs the conundrum
  • Date: Fri, 24 Aug 2012 07:33:14 -0400
  • Organization: http://www.asteriskdocs.org

On 23/08/12 06:27 PM, Matthew Moretti wrote:
chef_gem already does call Gem.clear_paths.  You can see the source code
here
<https://github.com/opscode/chef/blob/master/chef/lib/chef/resource/chef_gem.rb>;
all it does is subclass gem_package, call .run_action(:install)  on the
resource so it runs at compile-time and the clears the gem paths.

If you need build-essential at compile-time as well, you can set
node['build_essential']['compiletime'] to "true" and it the recipe will
install those packages at compile-time as well.


Ya I knew that chef_gem did a Gem.clear_paths, but the requirement of development libraries was the sticking point there (since if the gem requires compilation, and you try to install it prior to convergence, you wouldn't have the build-essential stuff installed yet).

However, you taught me something new. I'll give that a shot and see if it works!

I'm still under the impression that for usability, it might not be a bad idea to allow gem_package to install inline and also be allowed to utilize the gem right away.

Leif.

--
Leif Madsen
http://www.oreilly.com/catalog/asterisk



Archive powered by MHonArc 2.6.16.

§