Kenneth Jacker wrote:
> I am installing six Debian/etch machines -- m1, m2, ..., m6 -- from a
> golden copy on m0.
>
> As expected, each of the lab machines has 'm0' in its /etc/hosts and
> /etc/exim4/update-exim4.conf.conf files (maybe others as well?).
>
> Is this an example of when we should use a "post install" script in
> /var/lib/systemimager/scripts/post-install?
>
> What would I use to gain access to each of the installed host names
> within my install script? Something in /tmp/post-install/variables.txt?
> Maybe $HOSTNAME?
>
> Another question: does each client grab that script off the "image
> server" during installation? So I could debug such "post
> install" scripts by simply rebooting off of the install CD-ROM?
> (i.e., I don't need to make another "image"?)
>
>
> Any help on this -- including possible sample scripts -- would be
> *most* appreciated!
You can use all the variables used in the imaging process sourcing the
/tmp/post-install/variables.txt file, for example on top of your script
you can add the line:
. /tmp/post-install/variables.txt
Here is the list of the variables saved in variables.txt:
echo "HOSTNAME=$HOSTNAME" >> /tmp/variables.txt || shellout
echo "DOMAINNAME=$DOMAINNAME" >> /tmp/variables.txt
echo "DEVICE=$DEVICE" >> /tmp/variables.txt
echo "IPADDR=$IPADDR" >> /tmp/variables.txt
echo "NETMASK=$NETMASK" >> /tmp/variables.txt
echo "NETWORK=$NETWORK" >> /tmp/variables.txt
echo "BROADCAST=$BROADCAST" >> /tmp/variables.txt
echo "GATEWAY=$GATEWAY" >> /tmp/variables.txt
echo "GATEWAYDEV=$GATEWAYDEV" >> /tmp/variables.txt
echo "IMAGESERVER=$IMAGESERVER" >> /tmp/variables.txt
echo "IMAGENAME=$IMAGENAME" >> /tmp/variables.txt
echo "LOG_SERVER=$LOG_SERVER" >> /tmp/variables.txt
echo "LOG_SERVER_PORT=$LOG_SERVER_PORT" >> /tmp/variables.txt
echo "USELOGGER=$USELOGGER" >> /tmp/variables.txt
echo "TMPFS_STAGING=$TMPFS_STAGING" >> /tmp/variables.txt
echo "SSH=$SSH" >> /tmp/variables.txt
echo "SSHD=$SSHD" >> /tmp/variables.txt
echo "SSH_USER=$SSH_USER" >> /tmp/variables.txt
echo "SSH_DOWNLOAD_URL=$SSH_DOWNLOAD_URL" >> /tmp/variables.txt
echo "FLAMETHROWER_DIRECTORY_PORTBASE=$FLAMETHROWER_DIRECTORY_PORTBASE" >>
/tmp/variables.txt
echo "MONITOR_SERVER=$MONITOR_SERVER" >> /tmp/variables.txt
echo "MONITOR_PORT=$MONITOR_PORT" >> /tmp/variables.txt
echo "MONITOR_CONSOLE=$MONITOR_CONSOLE" >> /tmp/variables.txt
echo "BITTORRENT=$BITTORRENT" >> /tmp/variables.txt
echo "BITTORRENT_STAGING=$BITTORRENT_STAGING" >> /tmp/variables.txt
echo "BITTORRENT_POLLING_TIME=$BITTORRENT_POLLING_TIME" >> /tmp/variables.txt
echo "BITTORRENT_SEED_WAIT=$BITTORRENT_SEED_WAIT" >> /tmp/variables.txt
echo "BITTORRENT_UPLOAD_MIN=$BITTORRENT_UPLOAD_MIN" >> /tmp/variables.txt
For some post-install script examples you can look here:
http://svn.systemimager.org/listing.php?repname=systemimager&path=%2Ftrunk%2Fdoc%2Fexamples%2Fpost-install%2F&rev=0&sc=0
And post-install scripts are always downloaded from the image server at
the end of the installation process to each client.
Regards,
-Andrea
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users