On Feb 26, 2009, at 10:40 AM, Michael DeHaan wrote:
Matthew Barr wrote:
> The base tool might be as simple as a koan option to register a new
> profile. So workflow would be:
Hmm, registration in koan is an easier first pass indeed. Then we
could just invoke koan's registration hooks via the live CD for
round 2.
I thought you might like that. :-) It leads to options. Options are
good.
> PXE boot. loads a quick shell to enter the name of machine, and
the
> IP. That adds the the new system record and reboots to kick the
> system via a koan --replace-self.
So basically it would also need to have a few options to go
interactive for those few variables?
No necessarily. I just assumed we'd use a wrapper script around the
koan, to get the interactive data. Then it'd issue a proper koan
command, and go on it's merry way, and reboot.
I presume your use case is static or otherwise with DHCP
reservations?
Yes. We only use DHCP reservations...
We couldn't reboot into an install unless we also prompt for the
profile, which we could do.
I'd assume the end user would set that in the wrapper script. I'm
trying to keep the install to as few things as possible. Maybe even
skip the entire connecting of a monitor, if I can. A usb keyboard is
*really* easy to plugin.
Also, it seems like it would also want to ask for the name, but it
could query for the mac. Some users might not want to have to enter
in the IP.
Our datacenter uses names based on the IP. I expect to use the 2
numbers given on the prompt to create a full koan:
Prompt:
RACK: 15
System: 10
koan --register-new --system=cc10-15.interface.datacenter.company.us --
interface0name=cc10-15.web.datacenter.company.us --mac0=00:00:00:00:01
--interface1IP=10.50.15.10 --
interface1name=cc10-15.db.datacenter.company.us --mac0=00:00:00:00:11
--interface1IP=10.51.15.10 --profile=EL52x86_web
And yes, the design of the livecd / initrd is an area I'm not really
qualified to discuss, but we could call this script off a NFS mount,
or copy from an http URL, or somesuch, to allow it to be changed.
It would require a small DHCP dynamic pool on our network, but that
would be worth it, if we have to go and build 100 new servers.
The upside to a koan command is that I could run it on existing
servers to move them into the cobbler world, if only to just finish
the migration of servers to the cobbler managed DHCP.
Matthew
------------------
Matthew Barr
InteractiveOne - Senior System Engineer
e:mbarr@interactiveone.com
c:646.765.6878
aim: matthewbarr1