Quoting Christopher Johnston at 05/01/2011-07:11:09(-0500):
You can do it in the bios. Yes STK would be a solution to handle
that.
Sent from my iPhone
On May 26, 2010, at 11:21 PM, Corey Kovacs <corey.kovacs(a)gmail.com> wrote:
> Folks,
>
> Is there a built in 'correct' way to ensure that my second nics are
> not configured during build and left alone when using the network
> config snippets delivered with cobbler?
We added the following to the post_install_network_config snippet so any
non-defined interfaces will get ONBOOT=no in their configuration file.
Right before the "rm -f /etc/sysconfig/network-scripts/ifcfg-*" line.
It may not be what you are looking for (not built-in) because you have to
modify an upstream provided snippet.
I just pushed the commit to github, so you can also take it from there:
https://github.com/chutzimir/cobbler/compare/leave-interfaces-down
#raw
cd /etc/sysconfig/network-scripts
for iface in ifcfg-*; do
[ -f cobbler/$iface ] && continue
grep ^DEVICE $iface > cobbler/$iface
grep ^HWADDR $iface >> cobbler/$iface
echo "ONBOOT=no" >> cobbler/$iface
echo "BOOTPROTO=none" >> cobbler/$iface
done
#end raw
But if you are looking for a built-in way you can maybe actually define
the NIC in cobbler with a static IP of 127.1.1.1 (or similar)?
--
/\ Georgi Georgiev /\ You have a tendency to feel you are /\
\/ Sysadmin Head \/ superior to most computers. \/
/\ -SBI Japannext- /\ /\