[et-mgmt-tools] Cobbler patch for sending DHCP option host-name based on system name
Michael DeHaan
mdehaan at redhat.com
Wed Mar 12 19:36:17 UTC 2008
Pablo Iranzo Gómez wrote:
> Hi, for your consideration:
>
> Attached is a patch for allowing cobbler to set "option host-name
> $SYSTEM_NAME" if the setting isc_set_host_name is set in
> /var/lib/cobbler/settings
>
> What is intended for:
>
> At my network I've a generic:
>
> option
> host-name=concat("equipo-",substring(binary-to-ascii(10,8,".",leased-address),9,3));
>
> To set host-names for non-registered computers, using this patch,
> I can instruct my computers to use the name registered at cobbler by just
> empyting hostname:
>
> #raw
> sed -i 's#^HOSTNAME=.*$##g' /etc/sysconfig/network
> #end raw
>
> This way: if a system is registered, it will get cobbler hostname,
> if not, will get a generic "equipo-$IP_LAST_BYTE"
>
> Regards
> Pablo
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Commited to the devel branch...
Would you want to add this info to the Wiki under the DHCP section fo
user docs?
You might want to make a note that it will require Cobbler 0.9.X or later...
Thanks!
--Michael
More information about the et-mgmt-tools
mailing list