From owner-freebsd-questions@FreeBSD.ORG Mon Sep 27 18:55:45 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2FD5106564A for ; Mon, 27 Sep 2010 18:55:45 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id 67BDE8FC14 for ; Mon, 27 Sep 2010 18:55:45 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id o8RIthk4037664; Mon, 27 Sep 2010 20:55:43 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 6DBA5BA95; Mon, 27 Sep 2010 20:55:43 +0200 (CEST) Date: Mon, 27 Sep 2010 20:55:43 +0200 From: Roland Smith To: David Allen Message-ID: <20100927185543.GA79932@slackbox.erewhon.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Multiple Machines 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: Mon, 27 Sep 2010 18:55:45 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 24, 2010 at 03:04:45PM -0800, David Allen wrote: > Multiple Machines >=20 > This is sort of a "best practices" kind of question so all comments are > welcome. I'm wondering what folks are doing when setting up multiple > (more than 1, but less than 10) machines. >=20 > Consider, for example, some ordinary files such as the following: >=20 > /root/.cshrc > /root/.bashrc # toor account > /root/.bash_profile # toor account > /home/username/.bashrc > /home/username/.bash_profile > /etc/make.conf > /etc/src.conf > /etc/fstab # nfs mount entries > /etc/resolv.conf > /etc/ntp.conf >=20 > Some files are identical, some require different permissions, and some > (like fstab) consist of customizations that need to be added. >=20 > Short of enabling root ssh logins or writing makefiles, what would be the > best approach to handing the above? Every configuration file that I want to change, I copy first to ~/setup//, each of which is a git repository. (Of course you can = use any revision control system you like.) For managing files, I use "list" files combined with a couple of perl-scripts, called check.pl and install.pl. The list file details where e= ach file is to be copied to and what permissions it should have. The check scri= pts checks for differences between the files in the repository and the installed files. The install.pl does the obvious. :-) You can find this elaborated on one of my webpages: http://www.xs4all.nl/~rsmith/unix/configfiles.html=20 I tend to use rsync to copy these setup directories from my workstation to other machines (which also backs them up!). Then I log in by ssh to run the check and install scripts. It should be possible to extend the check and install scripts to work over = ssh directly. 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) --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkyg6K8ACgkQEnfvsMMhpyXsNgCeP2QTXZE/duSLPWaic5227PeE seAAn36uyUwao+rAu8u8IaFJ6Nf1kEY8 =5rzl -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--