The rdist program is a standard Unix tool for maintaining identical copies of files across multiple hosts. It preserves the owner, group, mode, and mtime of files if possible, and it can update programs while they are are executing. The transfer mechanism can be either rsh, ssh, or remsh. On Mac OS X the default is ssh. A client need only support ssh and have the rdist and rdistd binaries installed in order to be updated (see configuration notes below).
The rdist program is a standard Unix tool for maintaining copies of files across clusters of machines. It can be configured to selectively "push" different sets of files to different classes of machines, or used to copy complete directory trees to one or more machines. This document describes how to configure a machine to be a client for rdist over ssh using public key authentication (no passwords required). It also describes how to configure an rdist master, and provides some notes on how to build rdist on Darwin 6.x.
The actions taken by rdist are controlled by commands in a file called the distfile on the master. An example is given below. If you just want to configure a client machine to allow rdist access and you already have the binaries then follow the client configuration instructions below. To set up a master and create a distfile, follow the instructions in the master section below. Instructions for building the binaries are provided at the end of this document.
The public key is called id_dsa.pub while the private key is just id_dsa. You can use the -t option to generate an 'rsa' key instead of a 'dsa' key. It doesn't really matter, though RSA keys are shorter and probably slightly more secure.
# ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/var/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /var/root/.ssh/id_dsa. Your public key has been saved in /var/root/home/.ssh/id_dsa.pub. The key fingerprint is: 7c:99:37:44:d7:48:19:05:01:17:8e:01:9d:6f:bd:7a root@drummlin.local.
The private key is kept in root's .ssh subdirectory on the master. Be sure that it is kept secure, because anybody in possession of the key can access the client hosts as the root user without giving a password.
ftp://noether.vassar.edu/pub/myers/src/rdist-6.1.5-darwin.patch.Instructions for applying the patch and then building rdist are included in this file, but see below about installation.
(You will need the Developer Tools to build the rdist binaries, but you only need to do that on one machine, not all the machines in the cluster.)
If you have problems compiling the code, you may find it useful to consult the "Unix Porting Guide" in the Help system, under Help->Developer Help Center->Darwin.
Copyright © 2009 by Spy Hill Research | http://www.Spy-Hill.net/help/apple/rdist.html | (served by Islay.spy-hill.com) | Last modified: 02 October 2009 |