Mailinglist Archive: opensuse-autoinstall (72 mails)

< Previous Next >
Re: [opensuse-autoinstall] custom rules
  • From: Mike Marion <mmarion@xxxxxxxxxxxx>
  • Date: Tue, 12 Feb 2008 13:05:13 -0800
  • Message-id: <20080212210510.GD22977@xxxxxxxxxxxxxxxxxxxxxx>
On Tue, Feb 12, 2008 at 09:57:27AM +0100, Frank Steiner wrote:

That would mean different pxelinux.cfg stuff for different hosts.

Which is pretty simple if you base it off the mac address or hex value of
the IP. Can easily do something like 2 config files, one that is
default, one that is the special case, and just use symlinks to those 2
files based on the mac or ip.

Ok, that gave me the idea. Of course I can do sth. like
"case $HOSTNAME in a|b|c) echo blabla"
in the custom script. reaching the same effect as your script, but by
listing the hostnames in the script/profile instead of a case distinction
on the kernel command line (that would be much more difficult in our setup).

True.. it's shell so it's pretty flexible.

Thanks for the hint!

No problem. I've gotten a lot of help of the list here and love being
able to give back when I can. Our installs have gotten pretty complex
but really use the power of autoyast. I've setup a system where we have
a script to setup the initial pxelinux.cfg/01-<mac> files to start the
install (and some files in an NFS path our post scripts use for
customizations). A pre-script to rewrite the autoyast profile on the
fly to set the hostname, IP, initial DNS and such (which each of our
office sites and customize in a config file). Chroot and post scripts
to setup the base suse install to then run our company CRM system on top
of that. Autoyast has a lot of flexibility in each of these stages.

Next I'm going to be working on the pre-script to do a more dynamic
partitioning scheme based on disk size and requested size of swap to
allow people to give more/less swap. We have some huge ram hosts for
big jobs and are finding a need to play with swap values more.

--
Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com
[Bart's up in the treehouse]
Marge: "What do you think he's doing up there?"
Homer: "I don't know... Drug lab?"
Marge: "Drug Lab!?!?"
Homer: "Or reading comic books. What am I? Kreskin? You tell me what he's
doing!" ==> Simpsons
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >