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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
Right now i just have a separate .cfg file that includes only my site specific variables. That way i can modify things like IP or timezone very quickly In %pre i parse that file out to two other ones. One for command section variables and the other for variables i need in post.
I would imagine if your script can identify its configuration then you could just have a .cfg file generated based on a database query?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.