[opensuse-autoinstall] Including other files in an XML rules file
Hi all! I'm working on an autoyast system for my company and was wondering if there's a better way than to have one whole file per server. I've got quite a lot of standardisation across the machines yet each are slightly different. Is there a way to 'include' files in a build script? For instance, you can write a bash script and use `source` to have it source and run different scripts elsewhere on the filesystem. I'd like to do something similar with autoyast. I notice there's a "classes" directory in my build space, but I can't find any documentation on it. Is this relevant? Thanks in advance! Liam -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thursday 22 February 2007 05:20, Liam MacKenzie wrote:
I've got quite a lot of standardisation across the machines yet each are slightly different. Is there a way to 'include' files in a build script?
either classes http://www.suse.de/~ug/autoyast_doc/classes.html or xinclude </partitioning> <xinclude:include href="http://1.2.3.4/include1.xml" /> </profile> include1.xml: <?xml version="1.0"?> <!DOCTYPE software SYSTEM "profile.dtd"> <software xmlns:config="http://www.suse.com/1.0/configns"> <packages config:type="list"> <package>apache</package> </packages> </software> -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug now playing Diorama - Contradictive (Yes=No Version) -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thursday 22 February 2007 16:25, Uwe Gansert wrote: sorry, lame self reply but I forgot something:
or xinclude
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns" xmlns:xinclude="http://www.w3.org/2001/XInclude"> ...
</partitioning> <xinclude:include href="http://1.2.3.4/include1.xml" /> </profile>
the xinclude namespace must be specified. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug now playing Diorama - Contradictive (Yes=No Version) -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Liam MacKenzie
-
Uwe Gansert