Is there any way to get cobbler to automatically define eth0 with MAC address
and IP address from the getent functions?
In our environment we have another system setup as the DHCP and DNS server.
When we populate its information it also defines the MAC in LDAP. The system
we have cobbler running on could do this:
ip=$(getent hosts
reptar.example.com | awk '{print $1}')
mac=$(getent ethers
reptar.example.com | awk '{print $1}')
Is there any way to get cobbler to default to this for eth0?
(Actually the MAC address would need to be editted a little in that cobbler
does not like MACs like 0:50:56:82:0:e and getent zero suppresses).
Yes I could write a cobbler-add script that would front end the cobbler
command, but my goal is to make cobbler web be easy to use.
I see that there are methods to run snippets to build the ks file, etc. so I
could do all sorts of things later in the process, but is there any way to get
code to run at "system add" time?
--
Gary Algier, WB2FWZ gaa at
ulticom.com +1 856 787 2758
Ulticom Inc., 1020 Briggs Rd, Mt. Laurel, NJ 08054 Fax:+1 856 866 2033
Nielsen's First Law of Computer Manuals:
People don't read documentation voluntarily.