[chef] Re: Chef 10 -> 12 upgrade (cookbook scorched earth)


Chronological Thread 
  • From: Kent Perrier < >
  • To:
  • Subject: [chef] Re: Chef 10 -> 12 upgrade (cookbook scorched earth)
  • Date: Tue, 14 Jul 2015 10:13:16 -0500

I can't speak to a lot of this, but I can relate when we moved from Chef 0.10.something to Chef 11 last year.

We used chefdk and basically rewrote our cookbooks (they were a mess and needed to be abandoned anyway) for Chef 11.

Our migration was to, on the nodes, uninstall chef 10, rm -rf /etc/chef, then bootstrap the node with chef 11 with the environments and roles applicable.

We did not see any reason to keep the chef 10 server/data and we have not had a need to access it since we migrated.

Kent

On Tue, Jul 14, 2015 at 9:50 AM, Erik Ogan < " target="_blank"> > wrote:
I have a cluster of several hundred nodes managed by Chef 0.10(.4) and a private chef server. The cookbooks for this cluster are a jumbled, crufty mess. I would like to take a stab at a clean slate with Chef 12.

My plan is to bring up a set of test nodes that represent all of the roles we need to support using a new private chef (test) server to minimize the impact of this experiment. But, assuming that impulse is not just programmer hubris, we are going to need to eventually upgrade our current server and clients. 

I do not want to re-key hundreds of clients if I can help it, and the data in the Chef 10 server is valuable, so I would like to upgrade in place if possible. This means we will likely need to support both 10 & 12 simultaneously (though hopefully briefly as we roll through the fleet and upgrade all of them). We are already using organizations to separate testing environments and production on our cookbooks, so that cookbook changes do not impact production until they have been vetted. But creating a new organization for the upgraded clients still means we need to move their node & client records to the new organization.

So, my questions are: 
  * First and foremost, is this upgrade path feasible? 
  * What are the perils of serving a Chef 12 client data from a Chef 10 server?
  * What are the perils of upgrading a Chef 10 server to Chef 12?
  * Should I upgrade the server through Chef 11?
  * What is the least painful way to upgrade the various clients while keeping their keys & data? 
  * Am I going down a path that will lead to madness? 

Any thoughts or guidance you might have on how to approach this would be greatly appreciated!

-e

--




Archive powered by MHonArc 2.6.16.

§