LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 07-22-2009, 02:10 PM   #1
slinx
Member
 
Registered: Apr 2008
Location: Cleveland, Ohio
Distribution: Fedora, Ubuntu
Posts: 100

Rep: Reputation: 20
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: 264

Rep: Reputation: 50
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: 17
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.
 
  


Reply

Tags
centos, kickstart, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 06:03 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration