kl vqqqaq Scott Henson <[email protected]> wrote:
>On Thu, 10 Mar 2011 07:38:49 -0500, Gary Algier <[email protected]> wrote: >> 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? > >You would need to write custom code to do this. We don't currently have >any way of doing this. > >-- >Scott Henson >Red Hat CIS Operator >WVU Alum BSAE/BSME > >_______________________________________________ >cobbler mailing list >[email protected] >https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
