Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm currently managing a dozen servers. apt-cacher-ng is installed on the development server to maintain the packages.

The idea is to have exactly the same version and number of packages on the production servers.

We first make the update/upgrade on the dev server, then after validating the install (which can take a few hours or a day), we make the same on the production servers.

The problem is that between the time we make the update on the dev and on the production server, versions of packages may have changed so production servers won't get the same version of the packages.

Can I force the clients (production servers) to sync with the dev server, and not retrieve newer packages on the internet?

Or, is there any clever automated way to make sure my clients are in sync with the dev server?

Thanks for reading.

EDIT:

Found this link: debian-administration.org: Cloning a Debian system - identical packages and versions.

It partially solves my problem, but I'm still looking for an answer with apt-cacher-ng or else.

share|improve this question

2 Answers 2

Have you tried putting the acng service into offline mode?

After you've updated the dev server, add offlinemode:1 to the acng config file and restart the server. It can still serve the cached content but won't retrieve any newer packages over the Internet.

share|improve this answer

I realise this is an old question, but here is the way I solve this problem.

You can specify version numbers when you call call apt-get install, you do so like this:

apt-get install apache2=2.2.20-1ubuntu1

which will install version 2.2.20-1ubuntu1 of apache2. So when you set up the development server, make sure you specify the latest version number, which will give you the same result as simply apt-get install x. But then when you move to production, specify the same version number (which will be stored in you ap-cacher-ng server) to install that exact version, regardless of whether new versions have been released.

See this question for more details.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.