[chef] Re: Re: Re: Re: Re: RE: RE: possible to pass options to yum on package install


Chronological Thread 
  • From: Jeremy Koerber < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: RE: RE: possible to pass options to yum on package install
  • Date: Thu, 28 Mar 2013 11:08:54 -0700

That doesn't work either, as it's not a problem with the cache. Apparently it's a bug that was fixed in 10.18..
http://tickets.opscode.com/browse/CHEF-2427

Thanks for the help, everyone.


On Thu, Mar 28, 2013 at 4:42 AM, Ketan Padegaonkar < " target="_blank"> > wrote:

On Thu, Mar 28, 2013 at 12:11 PM, Jeremy Koerber < " target="_blank"> > wrote:
I tried adding flush_cache :before to the yum_package call, and I get a Fatal error early on in the chef run:
[2013-03-27T23:37:12-07:00] FATAL: NoMethodError: undefined method `any?' for :before:Symbol

Here's the recipe:


 yum_package "tomcat7" do
  options "--enablerepo=amzn-main"
  flush_cache :before
  action :install
  end

Try `flush_cache [:before]`

- Ketan




--
Jeremy Koerber
Director - Tech Ops






Archive powered by MHonArc 2.6.16.

§