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@xxxxxxxxxx
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
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools