Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: ashley bowyer on May 10, 2001, 04:41:04 PM

Title: Automating e-smith Installation
Post by: ashley bowyer on May 10, 2001, 04:41:04 PM
I am thinking of using e-smith in my comany and plan to role out approx 15 servers different IP address, domains, users in various sites.  My question is is there a way to automate this process instead of installing all the information 15 times like a menu sytem where I can enter IP address, domain i-bays etc and it will go away and build it .  Thank You
Title: Re: Automating e-smith Installation
Post by: Alejandro on May 11, 2001, 01:46:54 AM
Ashley:
Maybe this is really stupid... but at least..  give me the chance to be stupid ;-)

I would install e-smith with the config settings common  to most of your servers and then i would make a reinstallation disk of it.
in the reinstallation disk there is an file "ks.cfg" that holds the information to perform a clean install of a configured e-smith server,
if you could edit this file and save specific data of each of your server, you will have a multiple server installation disk just changing this file,
or may someone can write a script that with a few questions sets ks.cfg file for each machine.
and you are done,
Difficult part is editing thi file, but maybe someone has a better idea!
hope being helpfull
Alejandro.
Title: Re: Automating e-smith Installation
Post by: Charles Wannop on May 11, 2001, 08:44:22 AM
Not so silly!!!
As an added twist, how about make a boot floppy from the image on the CD, then edit the kick start file on the floppy to suit your network settings (you can read the existing file or copy from the re-install disk). Set the systems to boot from floppy and you should be away.

Chas.
Title: Re: Automating e-smith Installation
Post by: Darrell May on May 12, 2001, 11:19:50 PM
and I've posted a 'How to add multiple users to e-smith 4.1.x ' script.  Available here: http://www.e-smith.org/cgi-bin/contrib.cgi

Darrell
Title: Re: Automating e-smith Installation
Post by: Scott Smith on May 14, 2001, 05:45:11 PM
I have considerable familiarity with the reinstallation disk feature. I use it for two things.

First, as a boot disk to reinstall a server so it connects immediately to the network. This was the feature's intended purpose.

Second, to create an installation boot disk that presets options to my preferred values. I created a disk using a system that was configured with the default values I want to use, then I tweaked the ks.cfg file to finish the task. Especially the post section.

Works like a charm!
Title: Re: Automating e-smith Installation
Post by: Ashley Bowyer on May 15, 2001, 10:08:23 AM
Scott,

Is there a syntax list for this file ?  eg can I setup default I-bays and printers etc

Thanks,

Ashley
Title: Re: Automating e-smith Installation
Post by: Scott Smith on May 15, 2001, 05:47:28 PM
> Is there a syntax list for this file ?  eg can I setup
> default I-bays and printers etc

Look for the following line in ks.cfg:

     %post

From that point on, ks.cfg is copied to a file in /tmp and execed as a bash shell script. You can run any commands that exist on the system. I use a lot of

     /sbin/e-smith/db

commands to set parameters prior to the call to

     /sbin/e-smith/signal-event console-save

As I add quite a bit of stuff to the system, I have ks.cfg build a script in /root that I exec after the normal post-install reboot. This script mounts a floppy that contains the remainder of my stuff, and execs another bash script on the floppy to finish the work.