[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-autoinstall
Subject:    Re: [suse-autoinstall] rules.xml and profiles question - howto define variable in rules.xml
From:       Uwe Gansert <ug () suse ! de>
Date:       2005-04-19 15:45:52
Message-ID: 200504191745.50503.ug () suse ! de
[Download RAW message or body]

On Monday 18 April 2005 18:46, deet wrote:

> <rule>
>         <mac>
>              <operator>and</operator>
>              <match>00093f10cc32</match>
>              <match_type>exact</match_type>
>         </mac>
>         <result>
> <result>
>             <profile>host42.ca.company.net.xml</profile>
>         </result>
>         </rule>
>
>
>    Ideally I would like to see something where I have a catch all rule
> for all hosts which ends in a match and the resulting profile it looks
> for is an xml file that I have created which would be something like
> <mac_address>.xml or <ip_address>.xml.    I've seen a posting from
> Anas
> that I could use some notation like
>
> <profile>profile-@mac@.xml</profile>

try
<rule>
	<mac>
		<match>*</match>
		<match_type>exact</match_type>
	</mac>
</rule>

and then
<profile>profile-@mac@.xml</profile>
		

>      But I dont know how to set that "mac" variable within the rule.

you can do it with the "*"

-- 
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      

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic