- From: Ringo De Smet <
>
- To:
- Subject: [chef] Re: Re: gem_package with local gem file barfs...
- Date: Thu, 10 Feb 2011 10:15:00 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jizkQEGkYFzFvBHvLvl/BrOfY7rN7VJBNQbY5Yh7z+rUcAu4D3Im370MO2Lx2PuDH3 gzSrvL+urUkUOLANwcorlQKK+ufaDzlMfL+UL0aVc4VHpadLDvkl//rzvyZ8c39DQePy fE8Jd0HGMAaqiOElvfXDmUlSNBRaWXrAS7yLM=
Dan,
On 10 February 2011 07:05, Daniel DeLeo
<
>
wrote:
>
On Wednesday, February 9, 2011 at 6:36 AM, Ringo De Smet wrote:
>
>
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
When using the gem_binary option, the gem seems to be installed at
every Chef client run. Since I signal the client to restart after
installing the gem, it is continuously restarting itself:
https://gist.github.com/820181
Not good....
Ringo
Archive powered by MHonArc 2.6.16.