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.
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.
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
|