[chef] Re: Upgrade Ubuntu from 12.04 to 14.04


Chronological Thread 
  • From: Noah Kantrowitz < >
  • To:
  • Subject: [chef] Re: Upgrade Ubuntu from 12.04 to 14.04
  • Date: Mon, 27 Apr 2015 15:39:23 -0700

Okay everyone, lets cool our collective jets with the unhelpful "Don't do 
that answers.

The best way to do this would probably be a few execute resources running the 
relevant CLI commands. Unfortunately the officially documented process from 
Canonical is to use the update-manager tool, which is an interactive curses 
app if I remember correctly. I would check to see if it has a non-interactive 
mode. Otherwise you can do it the really old fashioned way of replacing your 
sources.list and apt-get dist-upgrade.

--Noah

On Apr 27, 2015, at 1:12 PM, Mohammad Fattahian 
< >
 wrote:

> Understood. BTW is there any way to upgrade OS via Chef? Our recipes are 
> not that much OS oriented. I hope I can do an upgrade via Chef. Also we 
> don’t have enough resources to recreate the servers with 14.04 from scratch.
>  
>  
> Mohammad
> 
>  
> From: Jeff Byrnes 
> [mailto:
>  
> Sent: Monday, April 27, 2015 4:02 PM
> To: Mohammad Fattahian; 
> 
> Subject: Re: [chef] RE: Re: Upgrade Ubuntu from 12.04 to 14.04
>  
> That’s exactly why I recommend re-creating the servers. Upgrading the OS 
> via Chef isn’t something I’m comfortable doing, but we have a number of EC2 
> instances running 12.04 that we’ve been slowly replacing with 14.04 when 
> the opportunity presents itself.
>  
> With quite a few of these, we’ve had to make adjustments to the cookbooks 
> in play, usually due to changes in apt packages, but also due to changes in 
> where config files are located, or how the default configs are in 14.04 vs. 
> 12.04 packages. Apache and PHP are huge offenders here (12.04 has Apache 
> 2.2 & PHP 5.3, while 14.04 has Apache 2.4 & PHP 5.5), but there are lots of 
> others.
>  
> -- 
> Jeff Byrnes
> @thejeffbyrnes
> Lead DevOps Engineer
> EverTrue
> 704.516.4628
>  
> On April 27, 2015 at 3:44:37 PM, Mohammad Fattahian 
> ( )
>  wrote:
> 
> As far as I know the existing cookbooks and recipes don’t have dependency 
> to 12.04. I’m thinking to upgrade the servers one by one to 14.04, but 
> looking for a automated solution, through Chef.
>  
> Mohammad
> 
>  
> From: Jeff Byrnes 
> [mailto:
> Sent: Monday, April 27, 2015 3:09 PM
> To: 
> 
> Subject: [chef] Re: Upgrade Ubuntu from 12.04 to 14.04
>  
> I’d recreate the servers from your Chef cookbooks, rather than upgrade 
> them. Much cleaner & safer that way. Then you can tear down the old ones 
> when you’re sure the new ones work properly.
>  
> -- 
> Jeff Byrnes
> @thejeffbyrnes
> Lead DevOps Engineer
> EverTrue
> 704.516.4628
>  
> On April 27, 2015 at 3:07:02 PM, Mohammad Fattahian 
> ( )
>  wrote:
> 
> Hi,
>  
> I need to upgrade couple of my servers which are deployed through Chef, 
> from Ubuntu 12.04 to 14.04. I have both 12.04 and 14.04 packages on my 
> repository.
>  
> Any idea to upgrade the servers?
>  
> Mohammad

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.16.

§