Yves Dorfsman wrote:
> On 2012-04-07 13:05, Glenn Sieb wrote:
>>
>> But what I want is to do something like this:
>>
>> 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").
>>
>
> This seems a very complicated way to solve this. What I've usually seen is
> to
> assign a hostname to a mac address, set that up in your dhcp server, and
> most
> distros (all?) will assign that name to the host during install
> automatically.
> It has the advantage of limiting damages to specific machines, if they get
> rebooted in pxe boot mode.

Indeed.

Upon sleeping on this more over the weekend, and realizing my
$php/perl_web_programming skills are lacking, I decided to just take the
mac address of the box, and set the hostname to "(department)-(mac, all
prettied up and stripped of :'s)". If $BOSS wants me to do something more
programmatic (like an http fetch of the kickstart using a perl script or
php script or something similar), I can bang my head against my desk at
that point. ;-) Since we send an email to the system admin (me) when a new
box has been netbooted, I can then edit DHCP and set the hostname there
when it's all said & done.

Dankeschoen!

Best,
--Glenn


_______________________________________________
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