Christian Horn wrote:
Hi all,
looking for idea/ways to do things.
a) setting network-modes
We run some network interfaces in 100full-mode and some in 1gbit mode.
Wondering how to set this up best. The mode is unknown at the time
'cobbler system add' is done, so i do not wand to use ksopts handing
over vars to a snippet configuring the mode.
My idea for now is using ethtool to ask for interfaces current speed.
If its 1gbit do nothing, if its autonegotiated to 100-half or 100-full i
echo 'ETHTOOL_OPTS="speed 100 duplex full autoneg off"' \
>>/etc/sysconfig/network-scripts/ifcfg-eth$number
to set the mode since if its 100 we run 100full by default.
Any more cobblerish way for this yet?
Seems like you would need to do this with Snippets and --ksmeta.
Not sure with what you mean by "unknown at the time cobbler system add
is done", seems like that would be the best
place to mark it because after then you've already started the install.
b) Finding out networks.
Usually admins deploying a new server have a list by hand containing this:
- new servers hostname: xyz
- one interface, ip 10.0.0.2 /24 gw .1
- one interface, ip 11.0.0.2 /16
- one interface, ip 12.0.0.3 /24
Network-people plug cables into the server, and we try to get out pxe-
interface onto first rj45-plug on the motherboard.
The mac has to be read from the remote service board.
I would like to have heuristics for finding out on what other interfaces
the other networks are plugged in. Unfortunatelly not all of these have
gateways, otherwise i could have taken interfaces up, tried to ping the
gateway, and in case of success configure the network.
Network discovery is not so much a cobbler thing... though it could be a
Func thing.
Cobbler system add is actually declarative, so when we represent
Networks in cobbler it will be for setting
them up. (Each network interface will be able to point at it's own
cobbler network object).
How are others handling this?
Christian
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler