[chef] Re: Re: Re: How to install a non-Ruby community gem with Chef?


Chronological Thread 
  • From: Tom Duffield < >
  • To:
  • Subject: [chef] Re: Re: Re: How to install a non-Ruby community gem with Chef?
  • Date: Wed, 30 Oct 2013 08:53:52 -0500

That is a bit different. Chef is a configuration management tool so it wasn't designed with the intention to build software from source. There may be a community cookbook that would have a nice interface for you but there are no primitive Chef resources for building RubyGems from source other than system commands given through 'execute' or 'bash' resources. 

That being said, I have tried building software from source inside a chef-client run before and it can sometimes be a bit of a crap-shoot. I would encourage you to use a tool designed for building Gem artifacts, store that artifact in a repository of some kind and have Chef pull the appropriate gem from that artifact repository. 

Tom Duffield — Automation Consulting Engineer

651.769.7497 –  " style="color:rgb(105,117,130)" target="_blank">  – my: Linkedin  Twitter

OPSCODE

CODE CAN

opscode.com   Blog   Facebook   Twitter   YouTube


On Wed, Oct 30, 2013 at 8:45 AM, Eric Feldhusen < " target="_blank"> > wrote:
What if I needed to build the gem from source since we're running different versions of Ruby?

Eric Feldhusen


On Wed, Oct 30, 2013 at 9:42 AM, Tom Duffield < " target="_blank"> > wrote:
The gem_package resource has a source parameter where you can specify a .gem file: http://docs.opscode.com/resource_gem_package.html

Tom Duffield — Automation Consulting Engineer

651.769.7497 –  " style="color:rgb(105,117,130)" target="_blank">  – my: Linkedin  Twitter

OPSCODE

CODE CAN

opscode.com   Blog   Facebook   Twitter   YouTube


On Wed, Oct 30, 2013 at 8:39 AM, Eric Feldhusen < " target="_blank"> > wrote:
How would I install a non-Ruby community gem with Chef?  Right now I'm trying to use a bash script, but if there's a way to install it with a Chef command, I'm thinking that would make more sense.

Any suggestions?

Eric Feldhusen






Archive powered by MHonArc 2.6.16.

§