<div dir="ltr"><div class="inboxEmptyHack"></div>That's brilliant Adam and everyone, thanks loads for all that!<input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"expires":false,"isManaged":false},"attachments":{}}"><div><br></div><div>J</div><div class="gmail_extra" style="display:block"><br><div class="gmail_quote">On 27 November 2017 at 19:17, Adam Thorn <span dir="ltr"><<a href="mailto:alt36@cam.ac.uk" target="_blank">alt36@cam.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 27/11/2017 15:12, James Arnold wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
everyone!) the .xml file for the package itself (eg msoffice.xml,<br>
chrome.xml) I can call anything at all. What matters is, in the file<br>
itself, the <package></package> section has the id=boris SO LONG AS in<br>
profiles.xml I've a section under the relevant OU for <package<br>
package-id="boris" /><br>
</blockquote>
<br></span>
There are a few different ways of defining your packages. You can use a single packages.xml file:<br>
<br>
<a href="https://wpkg.org/Packages.xml#packages.xml_structure" rel="noreferrer" target="_blank">https://wpkg.org/Packages.xml#<wbr>packages.xml_structure</a><br>
<br>
which has the overall structure<span class=""><br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<packages><br>
<br></span>
<package id="foo" ...><br>
<!-- define package foo here --><br>
</package><br>
<br>
<package id="bar" ...><br>
<!-- define package bar here --><br>
</package><br>
<br>
<!-- keep going with as many package elements as you like --><br>
<br>
</packages><br>
<br>
But that rapidly becomes difficult to manage, so you might instead split your package definitions into multiple files inside a packages/ directory:<br>
<br>
<a href="https://wpkg.org/Packages.xml#Individual_XML_package_files" rel="noreferrer" target="_blank">https://wpkg.org/Packages.xml#<wbr>Individual_XML_package_files</a><br>
<br>
and it sounds like that's what you have. But as you say, all that matters is the attributes within the contents of the XML, and the software you assign to a host in profiles.xml..<br>
<br>
<a href="https://wpkg.org/Profiles.xml" rel="noreferrer" target="_blank">https://wpkg.org/Profiles.xml</a><br>
<br>
need to have "package-id" attributes matching the "id" attribute in your <package> elements. Note that you can split up your profiles.xml file into multiple files in just the same way that packages.xml can be split. And to complete the set, hosts.xml (which defines how the profiles from profiles.xml get assigned to a particular host) can be split in much the same way:<br>
<br>
<a href="https://wpkg.org/Hosts.xml" rel="noreferrer" target="_blank">https://wpkg.org/Hosts.xml</a><br>
<br>
Yet another possibility is to get packages.xml (or profiles.xml or hosts.xml) from a webserver by suitably defining settings such as web_packages_file_name and wpkg_base in your config.xml:<br>
<br>
<a href="https://wpkg.org/Config.xml" rel="noreferrer" target="_blank">https://wpkg.org/Config.xml</a><br>
<br>
The config.xml provided with wpkg is well-commented and reading the default version that ships with wpkg is the best way to see the options (as yours might have been locally altered!). This is what I do, mainly because all our info about hosts and profiles ties in to a local database, so we query that via PHP and dynamically generate the hosts and profile XML contents as needed.<span class="HOEnZb"><font color="#888888"><br>
<br>
Adam</font></span><div class="HOEnZb"><div class="h5"><br>
------------------------------<wbr>---<br>
wpkg-users mailing list archives >> <a href="http://lists.wpkg.org/pipermail/wpkg-users/" rel="noreferrer" target="_blank">http://lists.wpkg.org/pipermai<wbr>l/wpkg-users/</a><br>
______________________________<wbr>_________________<br>
wpkg-users mailing list<br>
<a href="mailto:wpkg-users@lists.wpkg.org" target="_blank">wpkg-users@lists.wpkg.org</a><br>
<a href="https://lists.wpkg.org/mailman/listinfo/wpkg-users" rel="noreferrer" target="_blank">https://lists.wpkg.org/mailman<wbr>/listinfo/wpkg-users</a><br>
</div></div></blockquote></div><br><div><br></div>
</div></div>