classes in FAI, was "RE: upgrade"

Thomas Lange lange at informatik.Uni-Koeln.DE
Thu Sep 7 13:52:28 CEST 2000


shashi at fcrao1.astro.umass.edu 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 Informatik        mailto:lange at informatik.Uni-Koeln.DE
   Universitaet zu Koeln
            Pohligstr. 1        Telefon: +49 221 470 5303
             50969 Koeln        Fax    : +49 221 470 5317
----------------------------------------------------------------------



More information about the linux-fai mailing list