Date: Sun, 2 May 2010 21:11:31 +0200 From: "C. P. Ghost" <cpghost@cordula.ws> To: Roland Smith <rsmith@xs4all.nl> Cc: Oleg Lutchenko <ol@re-port.ru>, freebsd-questions@freebsd.org Subject: Re: Farm synchronization Message-ID: <o2rd74eb87c1005021211ha48ced5y774ec9bb683d1def@mail.gmail.com> In-Reply-To: <20100502151804.GA10753@slackbox.erewhon.net> References: <a819291cb028f3b8359899fddf754901.squirrel@xeonics.ru> <20100502151804.GA10753@slackbox.erewhon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 2, 2010 at 5:18 PM, Roland Smith <rsmith@xs4all.nl> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?o2rd74eb87c1005021211ha48ced5y774ec9bb683d1def>