Difference between revisions of "Hosts.xml"
From WPKG | Open Source Software Deployment and Distribution
Line 25: | Line 25: | ||
==Quick examples:== | ==Quick examples:== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 12:10, 25 June 2005
hosts.xml is a file which defines the the hosts and the profiles, which this hosts will use.
It has to be placed in the same direstory as wpkg.js.
WPKG will not work without this file.
The structure of hosts.xml is the following:
<wpkg>
<host name="host1" profile-id="custom1" />
<host name="host2" profile-id="custom2" />
</wpkg>
Which means, that a hostname with a name host1 will use a profile custom1, and a hostname with a name host2 will use a profile custom2.
If you have more hosts, or want to group them, it would be unwise to edit dozens of host entries just to attach them all to one or two profiles. That's why you can use regular expressions. You can view the exact syntax on this page.