From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 19 23:19:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B89616A4B3 for ; Sun, 19 Oct 2003 23:19:37 -0700 (PDT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 86AA943FCB for ; Sun, 19 Oct 2003 23:19:35 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 25693 invoked from network); 20 Oct 2003 06:18:58 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 20 Oct 2003 06:18:58 -0000 Received: (qmail 10810 invoked by uid 1000); 20 Oct 2003 06:19:32 -0000 Date: Mon, 20 Oct 2003 09:19:31 +0300 From: Peter Pentchev To: freebsd-hackers@freebsd.org Message-ID: <20031020061931.GE57130@straylight.oblivion.bg> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20031019190036.3426D16A4D7@hub.freebsd.org> <20031019101653.A29979@tikitechnologies.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="t0UkRYy7tHLRMCai" Content-Disposition: inline In-Reply-To: <20031019101653.A29979@tikitechnologies.com> User-Agent: Mutt/1.5.4i Subject: Re: rsync vs installworld X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2003 06:19:37 -0000 --t0UkRYy7tHLRMCai Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 19, 2003 at 10:16:54AM -1000, Clifton Royston wrote: > > Date: Sat, 18 Oct 2003 19:28:27 -0600 (MDT) > > From: "M. Warner Losh" > > Subject: rsync vs installworld > > Message-ID: <20031018.192827.118920091.imp@bsdimp.com> > >=20 > > I'm contemplating a binary distribution system for some systems that I > > have. I'm ignoring kernel updates for the moment, and concentrating > > on userland deployment. > >=20 > > I'm thinking of doing something like: > >=20 > > make buildworld > > make installworld DESTDIR=3D/big/disk/freebsd/image > > make mergemaster -D /big/disk/freebsd/mergemaster > >=20 > > And then on each machine I want to update I'd do something like: > >=20 > > sudo rsync --exclude etc --exclude usr/local --exclude boot \ > > --delete -av host-server:/big/disk/freebsd/image / > > sudo rm -rf /tmp/mergemaster > > sudo scp host-server:/big/disk/freebsd/mergemaster /tmp/mergemaster > > sudo mergemaster -someargs > >=20 > > My question is: has anybody else tried this? If so, what bumps along > > the way are there going to be? >=20 > I'm also very interested in this topic, as we're about to try to get > something similar working. Initially it will be for a moderate number > of servers at one location, and so can require console intervention, > but in our case it eventually needs to extend to many systems located > elsewhere with no onsite administrator. >=20 > In our case we have already built a simple framework for distributing > FreeBSD binary packages built within the ports system (rsync presently, > but extensible to http/https.) I have been hoping that it's possible to > build on the "make release" approach to generate a set of binary > packages for updates to the base system, distribute those via rsync, > and then install the package collection. It seems to me that an > advantage of that approach is that one could incorporate some of that > mergemaster logic into the pkg-install scripts. >=20 > Feedback, direction, or real-world experience with like systems would > be welcomed. Errr, isn't this pretty much what Colin Percival's security/freebsd-update port already does? :) Take a look at http://www.daemonology.net/freebsd-update/ - this might be exactly what you are looking for... G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence would be seven words long if it were six words shorter. --t0UkRYy7tHLRMCai Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/k35z7Ri2jRYZRVMRAjwhAJ9mS2RYdmJ3+8nboHldU7AJDV0G0QCgxqMZ HTjVAZUGgLkjodmD/yAK3Oo= =uBNX -----END PGP SIGNATURE----- --t0UkRYy7tHLRMCai--