I will use xsltproc as mentioned by Uwe's blog entry http://ugansert.blogspot.com/2010/04/autoyast-and-its-tools.html
Thus the final xml file will be created by xsltproc and not by autoyast.
Example:
Mynode1
*Project1.software.xml
*Project1.dns.xml
*Project1.ntp.xml
*Project1.nis.xml
*MyNode1.specialsettings.xml
Mynode2
*Project1.software.xml
*Project1.dns.xml
*Project1.ntp.xml
*Project1.ldap.xml
*MyNode2.specialsettings.xml
Will result in a final Mynode1.autoinst.xml and Mynode2.autoinst.xml which will be selected by a simple rule during installation.
Advantage imho
- I can create dynamically configuration for nodes based on a config file.
- In case a xml file need a change because for example the dns has been change, the dns.xml will be updated and used for new installation AND be used to the change running systems via "export TERM=vt100; screen -D -m yast /usr/share/YaST2/clients/ayast_setup.ycp setup filename=/tmp/$i"
Thus i am able to INSTALL and to MAINTAIN a Suse Linux environment in an easy way.
I hope i have not reinvented the wheel.
Cheers
Hajo
-----Original Message-----
From: Hans-Joachim Ehlers [mailto:HansJoachim.Ehlers@eumetsat.int]
Sent: Monday, March 21, 2011 3:39 PM
To: opensuse-autoinstall@opensuse.org
Subject: [opensuse-autoinstall] Using more than 1 result in a rules file
Hi,
Given: SLES 11 SP1
Question: Can i use more than one result for a match ?
Example: parsing a ntp.xml and a dns.xml based on memsize.
Only one result per rule: ( standard )
<rule>
<memsize>
<match>256</match>