From fsteiner-mail1@bio.ifi.lmu.de Wed Jan 4 14:10:52 2006 From: Frank Steiner To: autoinstall@lists.opensuse.org Subject: ex: chosing host-specific profile (pxe-based) Date: Wed, 04 Jan 2006 14:10:52 +0000 Message-ID: <43BBD75E.4010106@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0022146104307434557==" --===============0022146104307434557== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, here's sth. which didn't work in some earlier versions (don't remember when I last tried it) but is working at least in 10.1 alpha4. I can now use this rule in rules.xml to chose a profile for each host based on its name. This works only if the host gets its name via dhcp, so this is sth. especially nice for pxe-based installations. I provide this as example for other people and hope that someone can make use of it :-) This is a solution for the non-working matching, because the tag contains the IP and not the hostname, even when using pxe/dhcp. * exact profiles/part_(a)custom1@.xml true I use this to store partition information per host in a file part_.xml in the profile subdir. No need to change the rules.xml anymore, just create the profile with the partition information. In these profiles, I always keep partitions, formatting only / and /var. In case I really really want to destroy and recreate partitions for a specific host, I add another rule afterwards, e.g. riemann exact profiles/part_riemann_createnew.xml true or, IP-based: 141.x.x.x exact profiles/part_riemann_keep.xml true to override the common selection. Have fun! cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * --===============0022146104307434557==--