LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-22-2009, 02:10 PM   #1
slinx
Member
 
Registered: Apr 2008
Location: Cleveland, Ohio
Distribution: SuSE, CentOS, Fedora, Ubuntu
Posts: 106

Rep: Reputation: 23
Question 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

Thank you!
 
Old 07-23-2009, 06:58 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
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.
 
Old 07-23-2009, 11:08 AM   #3
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
better idea ( i do this a lot! )

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:

Code:
http://kickstart.your.domain/cgi-bin/default.cfgx&IP=1.2.3.4
&Hostname=foo.yourdomain.com&packages=mypackagefile&&ksdevice=eth1&disk=hda
(wrapped for sane-ness)


Rather than having $lots of seperate kickstart files for each, you can have one or two and tweak the url as necessary.
 
1 members found this post helpful.
Old 07-27-2012, 04:30 PM   #4
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Rep: Reputation: Disabled
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?
 
  


Reply

Tags
centos, kickstart, linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Identical Servers : Live Backup vaibhavs Linux - Software 22 06-04-2009 07:24 AM
Assigning eth number for 2 identical network card pii.ajah Linux - Networking 1 12-10-2008 12:47 AM
ext3 performance -- very large number of files, large filesystems, etc. td3201 Linux - Server 5 11-25-2008 09:28 AM
SSH / FTP Issue - Problem connecting between two identical servers bppilot Linux - Networking 1 09-13-2007 12:18 AM
Large Number of files? mikeshn Linux - Security 2 01-10-2004 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration