Re: vendor class identifier and kickstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 26, 2003 at 10:56:41PM +0200, Eric Doutreleau wrote:
> Hi
> 
> Le jeu 26/06/2003 à 18:09, Tru Huynh a écrit :
...
> > 
> > What about a basic web server? instead of your dhcp/nfs server?
> >  ks=http://www.cluster/rh73/ks.cfg
> 
> Well i could use http but
> -how can i serve my different kickstart file?
 :) a CGI generated kickstart file.
> -I prefer not modify my CD when i create new kickstart file.
If you call the same CGI which is responsible to create the right kickstart file
then you can use the same CD.

> the use of dhcp adress these two problems and that s why i use it.
> 


ks=http://my_apache/cgi-bin/ks.sh

ks.sh
-----
#!/bin/sh
KSDIR=ks

cat <<EOF
Content-type: text/plain

EOF
if [ -f ${KSDIR}/${REMOTE_ADDR} ]; then
cat ${KSDIR}/${REMOTE_ADDR}
else
cat ${KSDIR}/default.ks
fi

and in your cgi-bin dir:
[tru@kim cgi-bin]$ tree


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux