kickstarting a large number of nearly identical CENTOS servers
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
kickstarting a large number of nearly identical CENTOS servers
Hi, I'm getting ready to install a large number of servers. They have identical hardware. Each server will have nearly identical software, except for some differences in configurations, such as site IPs, printer IPs, time zone, etc. I have a kickstart that works nicely, but is there a way I can have each server look up its serial number using dmidecode (I know how to do this), then match or assign its serial number to a list of site configurations on the kickstart server, and then assign itself the correct configuration, and make a list of which serial numbers go with which configuration?
So if I have a list of sites, with each configuration, server 1 to kickstart will go to the list, add its serial number to the first record in the list, and download that configuration. Then server 2 will go to the list, and find the next record lacking a serial number, add its serial number, and then download the config, and so on.
Is there an easy way to do this? The kickstart server is running Ubuntu 2.6 kernel
Assuming dmidecode is available during the kickstart process, I would say you can look at using the %pre section of the kickstart script to work out the serial using dmidecode, then send that information to a http server and using perl or php or other, create the dynamic variables and send back as an updated ks file that is then used to build the server.
you can actually use the cgi-bin to generate a 'cfg file for each configuration and as long as what you want to change is in the kickstart file, you can add it to the url, ie:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.