rules.xml Example Files (SuSE 9.3)
Hello, I've been autoinstalling for a long time, but haven't been using the rules system. I would like to start, but am having trouble understanding how you write a rules file which has multiple rules that will match and return different class files, based on things like hardware specs and hostid netmask, and merge to a profile at the end. Can someone send me example rules file(s) which are at least somewhat similar? I'm having a hard time finding example files online that do similar to what I want. If I see enough example files I can figure it out. Basically, I want to do things like these: If hard drive is smaller than x, result class DiskSize / IDE_Small.class If hard drive is bigger than x, result class DiskSize / IDE_Large.class If hostid is C0A8000* result class Roles / Server.class If hostid is C0A8004* result class Roles / Workstation.class Is this possible, or do you have to write profiles which specify classes, and use the <profile> tag in the result? I've read all of nashif's autoinstall page for 9.1 page but I think I just need examples of more scenarios. Also, am I right in thinking that as of 9.2, you don't have to have separate profiles for 32 and 64 bit machines? Playing around with it, it seems to just figure it out on its own... Thanks in advance, -Charles
Hi I have a set of IWill opteron motherboards (IDE harddisk) which fails to boot from harddisk after a nfs based SLES9 installation. Somehow it seems the bootloader (Grub & Lilo) is not able to find the images -- so if Grub is selected as the bootloader, it hangs with a display of "GRUB" string and in case of Lilo - it hangs after displaying "L" . But I have able to install Arima opteron boards (SCSI harddisk) using the same installation server. The only successful and repeatable installation has been with Lilo and that too if only "minimal" installation option is selected. Actually the systems seem to be properly setup because i am able to boot the harddisk via "boot installed system" option of SLES9 CD1. I have attempted to repair bootloader using grub-install & SLES9 CD 1 repair tools but none of them seem to have any effect -- even y2log files does not show any errors. On suse portal, i found a reference to similar problem (http://portal.suse.com/sdb/en/2003/04/fhassel_grub_scsi.html) but it is w.r.t to SCSI hard disk. I am able to perform CD install on the node so I am not really not sure what is causing Grub to hang with display of "Grub" and similarly Lilo with "L". If any of the members have any suggestions/pointers - please reply... thanks in advance kanji __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Thursday 28 July 2005 01:30, Charles Smith wrote:
Can someone send me example rules file(s) which are at least somewhat similar? I'm having a hard time finding example files online that do similar to what I want. If I see enough example files I can figure it out.
what about: http://yast.suse.com/autoinstall/9.1/html/rulesandclass.html#rules
I've read all of nashif's autoinstall page for 9.1 page but I think I just need examples of more scenarios.
the first "Simple rules file" should cover your needs (maybe with a "<continue config:type="boolean">true</continue>" for more rules to process. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nürnberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
Uwe Gansert wrote:
what about: http://yast.suse.com/autoinstall/9.1/html/rulesandclass.html#rules
the first "Simple rules file" should cover your needs (maybe with a "<continue config:type="boolean">true</continue>" for more rules to process.
That's what I've been looking at, but again, I was wanting to provide classes rather than complete profiles. It doesn't really explain the syntax for doing that. -Charles
On Monday 01 August 2005 23:12, Charles Smith wrote:
Uwe Gansert wrote:
what about: http://yast.suse.com/autoinstall/9.1/html/rulesandclass.html#rules
the first "Simple rules file" should cover your needs (maybe with a "<continue config:type="boolean">true</continue>" for more rules to process.
That's what I've been looking at, but again, I was wanting to provide classes rather than complete profiles. It doesn't really explain the syntax for doing that.
a rule does not have to fetch a complete profile. You can fetch multiple parts of a profile by the use of multiple rules and those parts will be merged at the end to the complete profile (maybe that's not clear by the examples). If it makes you happy, put class_names into those - should work. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nürnberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
participants (3)
-
Charles Smith
-
kanji linux
-
Uwe Gansert