Re: upgrade FAI 2.10.2 to FAI 3

2007-04-20 Thread Holger Levsen
Hi,

On Friday 20 April 2007 09:44, Rudy Gevaert wrote:
> Also, I read etch comes with cfengine2, but if I keep my sarge nfsroot
> Idon't have to change my cfengine1 scripts.  Right?  Only if I do  a
> chroot into the new system I have to know what is running.

sarge has cfengine2, cfengine1 is not supported upstream anymore and has some 
issues. so I just switched to cfengine2 for sarge and etch :-)


regards,
Holger


pgpdfdcQ3zm0r.pgp
Description: PGP signature


classes in FAI, was "RE: upgrade"

2000-09-07 Thread Thomas Lange


[EMAIL PROTECTED] wrote:
> Hi, I had the following question regarding FAI - something which
> I havent been able to understand from the documentation:
Currently I'm writing a complete new documentation.

> Where and how do you specify which hosts are in which classes?
All classes are defined by scripts and files in /usr/local/share/fai/class/


> for example if A and C have the same network card and B and D have
> to have a certain package and E and F have to have a certain partition
> structure but all ABCDEF have the same base system, its still not
> clear to me how to do this with classes.

additional examples are in /usr/share/doc/fai/examples/class.
for network card specific classes you can use S05network_card.pl

Following script will add class X1 to host B and D and add class
PARTITION1 to host E and F. Then create a file
.../fai/disk_config/PARTITION1 , which will automatic used by host E
and F.

case $HOSTNAME in

B|D)
echo X1
;;
E|F)
echo PARTITION1
;;

esac


For the base system, which is used by all hosts, you can use the class ANY.
Hope this helps

-- 
 Thomas
--
Thomas Lange
Institut fuer Informatikmailto:[EMAIL PROTECTED]
   Universitaet zu Koeln
Pohligstr. 1Telefon: +49 221 470 5303
 50969 KoelnFax: +49 221 470 5317
--



RE: upgrade

2000-09-01 Thread shashi

Hi, I had the following question regarding FAI - something which
I havent been able to understand from the documentation:

Where and how do you specify which hosts are in which classes?
for example if A and C have the same network card and B and D have
to have a certain package and E and F have to have a certain partition
structure but all ABCDEF have the same base system, its still not
clear to me how to do this with classes.
Can anyone help by giving me an example? Thanks,




Shashi Kanbur  [EMAIL PROTECTED]
Five College Astronomy Department,
University of Massachusetts,
Amherst,
MA 01003
USA
(413) 577 0470 (413) 545 4223 (Fax)





RE: upgrade

2000-07-12 Thread Thomas Lange


Hi,

there's this long rcS_fai script that calls install_packages and
defines all environment variables, that are needed. FAI_ROOT and
classes must be defined maybe other too. fai has no mechanism to call
a command on every node of a cluster (push method), it uses a pull
method, so every node get it's command to execute.  For upgrading you
do not need fai. Try this little script

#! /bin/csh

set clustername=node

foreach h (01 02 03 04 05 06 07 08 09 10 11 12 13 14)
   set host = $clustername$h
   ping $host 1 >/dev/null
   if ($status == 0) then 
 echo ''
 echo ''
 echo '*   '$host'   *'
 rsh $host apt-get update
 rsh $host apt-get -f -y upgrade
   endif
end

-- 
Thomas
--
Thomas Lange
Institut fuer Informatikmailto:[EMAIL PROTECTED]
   Universitaet zu Koeln
Pohligstr. 1Telefon: +49 221 470 5303
 50969 KoelnFax: +49 221 470 5317
--