[wpkg-users] multiple entries for a host in hosts.xml

k2 kirill.k2 at gmail.com
Wed Nov 28 21:07:01 CET 2012


Hello!

The order is matter. In simple words - the first occurance wins and all
others will be ignored.

You should consider to use "dependends"es  in the profiles.xml level. Just
change the order of host definition in hosts.xml and add something like
this to profiles.xml:
       ....
       <profile id="javaprofile">
               <depends profile-id="common-software" />
               <package package-id="bulk-java-package" />
               ....
       </profile>
28.11.2012 21:26 пользователь "Chris" <chris-2012 at arcor.de> написал:

> Dear All,
>
> is it possible to make a host use several profiles like this?
>
> <host ipaddresses="^192\.168\.1\.[0-**9]+$" profile-id="common-software"
> />
> <host ipaddresses="192\.168\.1\.12" profile-id="javaprofile" />
>
> Does order of the host entries matter?
>
> I don't understand
>
>  Normally, hosts are parsed from top to the bottom, except when the
>> hostname is not a regular expression. So host "bronek1" will match
>> "profile1", even though it also matches "b.+" and "bron.+" (which are
>> regular expressions).
>>
>
> ( from http://wpkg.org/Regular_**expression_support<http://wpkg.org/Regular_expression_support>)
>
> Does this mean the first match wins and the others are ignored?
>
> Is there any way to define host groups and to assign programs (or
> profiles) to individual hosts at the same time?
>
>
> Chris
> ------------------------------**------------------------------**
> -------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/**
> pipermail/wpkg-users/ <http://lists.wpkg.org/pipermail/wpkg-users/>
> ______________________________**_________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/**listinfo/wpkg-users<http://lists.wpkg.org/mailman/listinfo/wpkg-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20121129/64cc859f/attachment-0002.html>


More information about the wpkg-users mailing list