Hello. We are running SLES9 and use autoyast to perform our client
installations.
I'm trying to get my installation environment to the point where I can
build machines which have a hostname set and non dhcp ip's for
eth0/eth1 with various routes entries.
I've now been able to kind of get a working understanding of using
rules.xml and profiles (mainly through reading postings from this
list).
So i've got this rule working which grabs the appropriated domain
profile (extra domains removed for readability). The domain profile
basically has all the general high level settings that apply to hosts
in a domain. But then I need to be able to incorporate each host
specific profile which contains host specific entries such as
hostname/ip address/gateway/static routes/etc.
<rule>
<domain>
<match>ca.company.net</match>
exact
</domain>
<result>
<profile>sles9.ca.cfg</profile>
<continue config:type="boolean">true</continue>
</result>
</rule>
But now I'm trying to configure the host specific profile. I
realized I could add in and rule for every single host that I'm
installing which would do the following but I dont like the idea of
having to edit the rules file for every single host that I install.
<rule>
<mac>
<operator>and</operator>
<match>00093f10cc32</match>
exact
</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
.xml or .xml. I've seen a posting from
Anas
that I could use some notation like
<profile>profile-@mac@.xml</profile>
But I dont know how to set that "mac" variable within the rule.
Would I do a custom rule to do this and if so how would I do it? If
I'm running a custom script do I embed it in the xml or have a path to
a script that gets executed?
I would really appreciate any pointers or tips on this topic as I
feel if I can get over this last hurdle I will have a fairly portable
autoyast structure that I can propogate to our various sites without
much modification.
If anyone would be able to include any custom rule examples I
would be very greatful.
Thanks for your help!
Derek.