From owner-freebsd-questions@FreeBSD.ORG Sun May 2 19:11:41 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5DF251065675 for ; Sun, 2 May 2010 19:11:41 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id EE55A8FC20 for ; Sun, 2 May 2010 19:11:40 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so73530eyd.9 for ; Sun, 02 May 2010 12:11:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.38.5 with SMTP id z5mr897229ebd.36.1272827491734; Sun, 02 May 2010 12:11:31 -0700 (PDT) Received: by 10.213.30.20 with HTTP; Sun, 2 May 2010 12:11:31 -0700 (PDT) X-Originating-IP: [93.203.46.115] In-Reply-To: <20100502151804.GA10753@slackbox.erewhon.net> References: <20100502151804.GA10753@slackbox.erewhon.net> Date: Sun, 2 May 2010 21:11:31 +0200 Message-ID: From: "C. P. Ghost" To: Roland Smith Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Oleg Lutchenko , freebsd-questions@freebsd.org Subject: Re: Farm synchronization X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2010 19:11:41 -0000 On Sun, May 2, 2010 at 5:18 PM, Roland Smith wrote: > On Sun, May 02, 2010 at 06:17:34PM +0400, Oleg Lutchenko wrote: >> Hello! >> >> Is there any regular way to synchronize installed packages in the farm o= f >> FreeBSD servers quickly. > > Forget packages. Here is wat I do to keep the ports on a couple of machin= es in > sync. > > - Ports are built and installed on a single powerfull workstation, the bu= ild machine. > - After updating the build machine (using portsnap and portmaster), the > =A0/usr/local and /var/db/pkg directories from that machine are distribut= ed to > =A0the dependent machines using rsync(1). > - You may need to exclude /usr/local/etc from rsync, or use a script to c= hange files in > =A0that directory afterwards to account for different hostnames and or IP > =A0addresses! I tend to keep config files for every machine in a git > =A0repository on my workstation, merge any chances from the updates and r= oll > =A0them out to the dependent machines. > - Note that if you use ports that install kernel modules, you'll need to = sync > =A0/boot/modules as well! > - On the dependent machines, the /usr/ports directory is removed to save = space. > > This solution has made my life a lot easier. I'm doing this on a farm of over 500 FreeBSD machines for years now. Works perfectly, and is a huge time saver. > Roland > -- > R.F.Smith =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 =A0B7CE 1277 EFB0 C321 A725 (KeyID: C321A72= 5) -cpghost. --=20 Cordula's Web. http://www.cordula.ws/