Koozali.org: home of the SME Server

I-Bays Setup Automation

Ashley Bowyer

I-Bays Setup Automation
« on: May 16, 2001, 09:03:47 AM »
Is there a way to create multiple I-Bays during the install phase of E-Smith eg apps, download,data .

Thanks

Ashley

Alejandro

Re: I-Bays Setup Automation
« Reply #1 on: May 16, 2001, 06:01:45 PM »
Ashley.
if you have a fresh installation of e-smith with these e-bays created you can make a re-installation disk to get them created on each server you setup with that disk.
Alejandro.

Scott Smith

Re: I-Bays Setup Automation
« Reply #2 on: May 16, 2001, 06:15:22 PM »
You need to create an "ibay" entry in the /home/e-smith/configuration file, and then signal the ibay-create event. There are a couple of ways to populate the configuration file. You can either append the fully formed ibay line to the file, or you can use the db command to populate the file. The former is quick and dirty, the latter would be the preferred method.

Here is an ibay line from configuration:

test=ibay|CgiBin|disabled|Gid|5001|Group|shared|Name|Test i-bay|PasswordSet|No|PublicAccess|local-pw|Uid|5001|UserAccess|wr-admin-rd-group

Note that the above is all one line, and case is _very_ important. The format of the line is basically this: name=entryType|property|value...  The property|value pairs can repeat multiple times. To create this entry using the db command:

/sbin/e-smith/db accounts set test ibay CgiBin disabled Gid 5001 Group shared Name "Test i-bay" PasswordSet No PublicAccess local-pw Uid 5001 UserAccess wr-admin-rd-group

Again, all one line. To create the ibay call:

/sbin/e-smith/signal-event ibay-create

This will create the ibay directories, set permissions, adjust network settings, etc, just as if you had created the ibay from the web manager. Do note that at this point there is no password assigned to the ibay. You can set that using:

perl -e "use e-smith::util; esmith::util::setIbayPassword("test", "password");"

I recommend perusing /etc/e-smith/web/functions/ibays (the perl script that backs up the ibay panel in the web manager) to learn the specific options available for the various ibay properties. Also, you should investigate the assignment of Gid and Uid.

Scott

Charlie Brady

Re: I-Bays Setup Automation
« Reply #3 on: May 16, 2001, 09:18:07 PM »
Alejandro wrote:

> if you have a fresh installation of e-smith with these e-bays
> created you can make a re-installation disk to get them
> created on each server you setup with that disk.

Not correct, Alejandro. The re-installation disk only reconfigures network configuration information, not account information.

Charlie

Alejandro

Re: I-Bays Setup Automation
« Reply #4 on: May 16, 2001, 09:40:17 PM »
Thanks Charly, and sorry Ashley for the wrong point.

I'll try again,.... maybe i'll suggest (instead of my first wrong post) a backup from a clean install with those Ibays and a restore in other server, but obviously is much more better (not easier) Scott's one, and surely Scott's suggestion takes in count all the permission and ownership relation of files and ibays.

If a clean backup is done, it should be done before the permission and exclusion process takes place. and then have it proccess done locally on each server.

Sorry again,,
Alejandro
Shamed but learning....;-)

Alejandro

Re: I-Bays Setup Automation
« Reply #5 on: May 16, 2001, 09:52:30 PM »
Still here....

If we take all of Ashley and Scott posting this topic and before...
 we can have a complette unattended installation system for e-smith servers  it could be great ond maybe an add-on script...
of course if you want this system to work you shoud disregard my postings ;-)

Alejandro.

Ashley Bowyer

Re: I-Bays Setup Automation
« Reply #6 on: May 17, 2001, 09:35:44 AM »
Scott,

Thanks, will try your suggestion.  I tried making a backup install disk and found out that it doesn't save all the info.  From a fresh install I backed up  to a desktop and then restored seems to work.  I am trying to automate as much as possible.  When I role out these servers the only thing I need to change will be domain name and IP address.  My knowledge of Unix is a bit rustly also

kind regards,

Ashley