[chef] Re: Re: Re: chef_gem vs. gem_package


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: Re: Re: chef_gem vs. gem_package
  • Date: Tue, 6 Aug 2013 09:23:56 -0700

Can you log the value of ENV[GEM_HOME] and EBV[GEM_PATH]

On Aug 6, 2013 9:07 AM, "Sam Darwin" < "> > wrote:
> As long as you're using the Omnibus installs, gem_package should fail
> if you haven't installed Ruby on your system.

doesn't fail.

using ubuntu or rhel:

the route53 recipe uses gem_package:

fog = gem_package "fog" do
  action :nothing
end
fog.run_action( :install )

but ruby isn't on the local system:

:/# which gem
:/# which ruby
:/#

:/# locate fog

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.10.1
...

the route53 recipe works, without a local ruby.



Archive powered by MHonArc 2.6.16.

§