Matthew Barr wrote:
On Apr 30, 2009, at 1:22 PM, Michael DeHaan wrote:
Gino LV. Ledesma wrote:
What I'd like to tell cobbler (step 3) is that I'm provisioning this machine for a specific user -- perhaps by passing something onto the kernel command line as a parameter, and then having the post-install section do the customization based on that. For example, I could pass in username=$username and then a script/trigger could fire off and lookup a DB for that user, and then create the accounts/profiles/apps/configs/etc automatically.
What many folks do is create a web interface that allows the user to answer specific questions, and then save those answers as template varariables in the system objects which are used when evaluating the kickstart template.
If you want to do this via PXE you must create system records.
Guys: What about making a custom image that runs the koan system register stuff? The biggest issue is to avoid having to get the MAC address into Cobbler. If you could make a custom PXE that runs on all boxes by default, and prompts for a username, or even looks up a user name -> profile name, and then runs the proper system add command, you could probably get exactly what you wanted...
It's a combination of what Gino wants, and getting that system record into Cobbler... and everyone ends up ahead.
Matthew _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
WRT cobbler-register via PXE:
Thought about it a while back.
This could easily be done via livecd-tools, and then PXE booted via livecd-to-pxeboot.
After I get the koan live CD working again (should be week after next; travelling next), I can see about putting one (and instructions for use) together.
Not much is involved at all.
He would still have to do the web interface that asks the custom questions about what the user wants to put on the system for now... though that is also in my medium-term (is that a word?) plans?
Have a part of cobbler web (seperate UI) where you can log in, template out some questions, map them to metadata variables, and use them to update a system record, toggle the netboot flag, and reassign a new profile. It would probably have to be used with authz_ownership to ensure someone didn't reprogram their own systems, and we don't want ordinary users changing MAC addresses and such, so those are some fields you would /not/ want to make editable.
Anyway, this is a use case we /VERY/ much want to persue, so if you're interested in helping build this and have some Python/Django skills, you are welcome to do it.
I could see that working very well with a cobbler-register live CD to seed info.
Rather than needing the live CD, of course, a simple SSH loop or using Func could be used to seed that same data.
--Michael