Re: Single template for multiple directories.

2000-11-08 Thread Ronan KERYELL

> On Wed, 8 Nov 2000 09:02:17 -0500 (EST), Matt Sabourin <[EMAIL PROTECTED]> 
>said:

Matt> Right now, I have created multiple templates on the server, one
Matt> per client.  This takes care of the permissions problem, and
Matt> ensures that the /u directory does not contain extra
Matt> files/directories.  The problem is maintaining the templates on
Matt> the server becomes difficult.

Why not using a less centralistic approach, such as with cfengine
(http://www.iu.hioslo.no/cfengine/) where you could state declaratively a
description of all your machines ?

-- 
Ronan KERYELL  |\/
Labo Informatique Télécom  |/)  Tel:(+33|0) 2.29.00.14.15
ENST Bretagne, BP832   KFax:(+33|0) 2.29.00.12.82
29285 BREST CEDEX  |\   E-mail: [EMAIL PROTECTED]
FRANCE | \  http://www-info.enst-bretagne.fr/~keryell




Single template for multiple directories.

2000-11-08 Thread Matt Sabourin

I am running rsync2.4.6 on Solaris 2.6 (solaris) and HP-UX11 (clients).
I need to use a "template" directory on the server to set up multiple
directories on the clients.  Basically, I'm trying to reset the user
directories to an initial image (this is for a training room).

The set is as follows:
- client machine name is hostXX, where XX is a 2 digit number
- user directories are under /u
- there are multiple users, with names in the format of nameXX, personXX,
etc, etc.
- the template directory lives on the server in /Master/template.  

I want rsync to remove any directories in /u that are not user directories
specifically tied to that machine (ie /u/name05 is not valid on host01).
I want rsync to set all valid user directories to match the template
directory on the server.  It looks like I will have to do an rsh from
the server to reset the permissions on the home directories after the
rsync has completed.

The rsync is being run on the server, inside of a for loop:
for I in 01 02 03 ...

Right now, I have created multiple templates on the server, one per
client.  This takes care of the permissions problem, and ensures that the
/u directory does not contain extra files/directories.  The problem is
maintaining the templates on the server becomes difficult.  

Does anyone have *any* suggestions for me?




==
Matt Sabourin   
Systems Engineer
Structural Dynamics Research Corp.  
1555 Fairlane Dr., Suite 300Email: [EMAIL PROTECTED]
Allen Park, MI 48101
==