On 4/25/2011 1:10 PM, Rainer Meier wrote: > In this example all hosts whose names start with "prefix-" would be assigned > profile1, the host named "hosty" gets profile2 assigned etc. > Any host not matching any previous host definition will be catched by the > regular expression ".*" which just matches everything. So any host not matched > by previous host definitions are getting profile "default" assigned. > > > So if you want all hosts to have the same set of default packages just do > something like: > > <profile id='default'> > <package package-id='package1' /> > <package package-id='package2' /> > </profile> > > <profile id='profile1'> > <depends profile-id='default' /> > <package package-id='package3' /> > </profile> > > <profile id='profile2'> > <depends profile-id='default' /> > <package package-id='package4' /> > <package package-id='package5' /> > </profile> > ... > > As all profiles have a dependency on the "default" profile this makes WPKG > "include" the defintions in the "default" profile into the scope of profile1 and > profile2. So if you update something in the "default" profile it will affect > profile1/profile2-hosts too. > > br, > Rainer > I didn't explain it well. What you have shown here is exactly what I was looking for. Thank you!! |