Well... it's a nice wrapper to create links in
/var/lib/systemimager/scripts for your environment.. ;-)
Maybe, in general, it would be great to have an option in
si_mkautoinstallscript (and consequently in si_getimage) to specify the
list of the overrides by command line, like:
si_mkautoinstallscript --overrides "OVER1 OVER2 ..." ...
What do you think?
-Andrea
Jason Knudsen wrote:
> Maybe I've just been reinventing the wheel here..
>
> I've only one image and I use overrides per platform to get these
> systems to boot... and depending on which hardware platform is being
> reimaged, I create a link from the hostname -> the masterfile I've
> created for that hardware platform.
>
> snippet of our "flat file" /scratch/db/database:
>
> ------------
> statest02 dell 2650
> stads71 rackable C1000
> stamr03 hp DL380
> ------------
>
> Some snippets of my reimage.sh script I made to do all this for me:
>
> ------------
> # Determine the model of our host
> GETMODEL=`cat /scratch/db/database | grep $HOSTNAME | awk '{print $2$3}'`
> IMAGENAME=$OS-$GETMODEL
>
> # Setup host to reimage with the proper masterfile
> cd /var/lib/systemimager/scripts
> unlink $HOSTNAME.sh
> ln -s $IMAGENAME.master $HOSTNAME.sh
> ------------
>
> and in my /var/lib/systemimager/scripts directory: ls
>
> ------------
> hosts post-install pre-install
> RH40U3-dell2650.master
> RH40U3-rackableC1000.master
> RH40U3-hpDL380.master
> stads71.sh --> RH40U3-rackableC1000.master
> stamr03.sh --> RH40U3-hpDL380.master
> statest02.sh --> RH40U3-dell2650.master
> ------------
>
> The "HACK" I think I've really made is that in each master file I define
> the IMAGENAME=RH40U3 as the first thing. So instead of each having their
> own image, they all use the same image but I specify the OVERRIDE in
> each masterfile to their respective hardware-platform-override-directory...
>
> Phew... out of breath! I have reinvented the wheel, haven't I? :-p
>
> Thanks for the info!
>
> Jason
>
-------------------------------------------------------------------------
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