[chef] Re: CHEF-3930: Run apt-get update automagically if apt-get install fails


Chronological Thread 
  • From: Andrea Campi < >
  • To: " " < >
  • Subject: [chef] Re: CHEF-3930: Run apt-get update automagically if apt-get install fails
  • Date: Thu, 28 Feb 2013 00:05:33 +0100

What about making it opt-in / opt-out with an attribute?
I don't much care which way the default is, but it would sure be nice to have the option.


On Thu, Feb 28, 2013 at 12:01 AM, Bryan McLellan < " target="_blank"> > wrote:
Should the apt provider try to run apt-get update if :install fails?

We talked about this a bunch at code review [1] today, starting at
22:45. http://www.youtube.com/watch?v=8pOd8NzmKIY

+ This happens all the time, thanks man.
- I told Chef to install a package, not update my sources! Get off my lawn!

In all seriousness, it's a pretty interesting boundary between Chef
being pretty helpful versus Chef being strict about its role. There
isn't a solution here that pleases everyone, but I'm curious about any
other opinions.

Bryan

[1] http://wiki.opscode.com/display/chef/Code+Review




Archive powered by MHonArc 2.6.16.

§