- From: Ringo De Smet <
>
- To: Chef Users <
>
- Subject: [chef] gem_package with local gem file barfs...
- Date: Wed, 9 Feb 2011 15:36:17 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lL4MJoXOl4jZoZEn+JSnFtwrsR92VsZ3lOjBUwFkWFmA4KdGLNRdDLLjembyoqDw6W tLt6hsifySAEPC1Ut4nPw1KF8BvyjGmqXNWZ4nU8CjHziqgg10i0alq6DY0aX1PkVvLa dqU3wSuAoDT7Gex1OHmHETv4UQUN4BObzZeIw=
Hello,
I have a locally patched version of ohai (for OHAI-235) and versioned
it 0.5.9. This gem installs fine manually. Now I try to install this
gem with a gem_package resource as follows:
gem_package "#{Chef::Config['file_cache_path']}/#{ohaiGem}" do
action :install
version ohaiGemVersion
notifies :restart, "service[chef-client]"
end
However, I get a stacktrace from withing rubygems:
https://gist.github.com/818558
When adding the gem_binary option to the resource, it works like a charm:
gem_package "#{Chef::Config['file_cache_path']}/#{ohaiGem}" do
action :install
version ohaiGemVersion
gem_binary "gem" #Needed to use a gem command line client
notifies :restart, "service[chef-client]"
end
Bug?
Ringo
- [chef] gem_package with local gem file barfs..., Ringo De Smet, 02/09/2011
Archive powered by MHonArc 2.6.16.