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,