"YD" == Yves Dorfsman <[email protected]>

    YD> On 2012-04-07 13:05, Glenn Sieb wrote:

    >> 1) Have a list of hostnames on $PXESERVER (accessible via
    >> HTTP).  2) Have the script pull the a hostname from that
    >> list.  3) Mark that hostname in the list so that it is now
    >> shown as being "in use" and have the script check to make
    >> sure it doesn't pull that hostname again (unless/until we
    >> "unmark it").

    YD> This seems a very complicated way to solve this. What I've usually
    YD> seen is to assign a hostname to a mac address, set that up
    YD> in your dhcp server, and most distros (all?) will assign
    YD> that name to the host during install automatically. It has
    YD> the advantage of limiting damages to specific machines, if
    YD> they get rebooted in pxe boot mode.

That's certainly what we do, but if you really wanted to
manipulate a file, the sanest way is probably to put it on a
writable NFS share, mount it on your kickstarted client, and
access it that way.  You could even make it a temporary mount if
you didn't want it to be accessible all the time.

Still seems like it would be prone to locking issues and other
badness, though.

   Claire

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  Claire M. Connelly                             [email protected]
  System Administrator, Dept. of Mathematics, Harvey Mudd College
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Attachment: pgpZOWtNGyc1R.pgp
Description: PGP signature

_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to