
On Tue, Sep 01, 2009 at 08:18:00AM -0700, Simon Loewenthal/NL/Tele2 wrote:
I would like to have this xml inherit the hostname, IP address from the client that called it.
You can basically re-write the entire profile in the pre-install scripts if you want, and could do what you're looking to do (and a lot more) there. Just output a /tmp/profile/modified.xml file and it'll be re-read after the pre-install scripts are run. I do several things using comment tags that are replaced by a pre-install script that replaces them based on common names.. e.g. compute_single.xml: <comment>SWAP_DEFAULTS</comment> scripts.xml: <comment>NET_DEFAULTS</comment> scripts.xml: <comment>NIS_DEFAULTS</comment> scripts.xml: <comment>NTP_DEFAULTS</comment> scripts.xml: <comment>CLK_DEFAULT</comment> scripts.xml: <comment>ADDON_DEFAULTS</comment> scripts.xml: <comment>ROOTWORD_DEFAULT</comment> scripts.xml: <comment>TZ_DEFAULT</comment> The script looks for any VALUE_DEFAULTS then in a case statement runs the right subroutine to replace the comment tags with xml for the profile.. the above do things like dynamically set the swap space (different admins in our offices wanted to be able to set different amounts of swap), outputs the entire <networking> section (which is what you're mostly looking for), NIS info (mostly deprecated), etc. These were originally put in place to allow a shared set of identical files with one configuration file per site read in to put in site specific values without super complicated rules.xml setups, which have their own short-comings.
<script>echo "kernel.shmall = 2097152" >>/etc/sysctl.conf</script>
How would I instruct autoyast to call this file?
You can also do this type of thing in either the chroot or post-install scripts. The ways to do pre/chroot/post scripts are pretty well documented in the autoyast docs. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com "Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;)" (Linus Torvalds, about his failing hard drive on linux.cs.helsinki.fi) -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org