Date: Sun, 2 May 2010 17:18:04 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Oleg Lutchenko <ol@re-port.ru> Cc: freebsd-questions@freebsd.org Subject: Re: Farm synchronization Message-ID: <20100502151804.GA10753@slackbox.erewhon.net> In-Reply-To: <a819291cb028f3b8359899fddf754901.squirrel@xeonics.ru> References: <a819291cb028f3b8359899fddf754901.squirrel@xeonics.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 02, 2010 at 06:17:34PM +0400, Oleg Lutchenko wrote: > Hello! >=20 > Is there any regular way to synchronize installed packages in the farm of > FreeBSD servers quickly. Forget packages. Here is wat I do to keep the ports on a couple of machines= in sync. - Ports are built and installed on a single powerfull workstation, the buil= d machine. - After updating the build machine (using portsnap and portmaster), the /usr/local and /var/db/pkg directories from that machine are distributed = to the dependent machines using rsync(1). - You may need to exclude /usr/local/etc from rsync, or use a script to cha= nge files in that directory afterwards to account for different hostnames and or IP addresses! I tend to keep config files for every machine in a git repository on my workstation, merge any chances from the updates and roll them out to the dependent machines. - Note that if you use ports that install kernel modules, you'll need to sy= nc /boot/modules as well! - On the dependent machines, the /usr/ports directory is removed to save sp= ace. This solution has made my life a lot easier. You'll have tha same ports installed on all machines. This can be viewed as making life easier or as a security risk, depending on how you look at it. = :-) But if your thoughts are leaning in the second direction, you can always us= e a script to pkg_delete the ports you don't need on specific machines. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvdl6wACgkQEnfvsMMhpyViNACggy1mMoCZqt71YETmKJY6lcJC mO4AoKyzvPUdYcxkE8mRbpEj9bY5pPK3 =mvck -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100502151804.GA10753>