Changes

WPKG Multi sites

970 bytes added, 14:03, 9 August 2013
WpkgMultiSite.vbs
</source>
 
 
== Specific variable depending on computer subnet ==
I personnaly use this kind of code in my package definition :
<source lang="xml">
 
<variable name="LOCAL_SOFTWARE" value="%SOFTWARE%" /> <!-- DEFAULT SITE -->
<variable name="LOCAL_SOFTWARE" value="\\xxxxx-012\wpkg" ipaddresses="^192\.168\.5\.[0-9]+$" /> <!-- SITE 1-->
<variable name="LOCAL_SOFTWARE" value="\\xxxxx-019\wpkg" ipaddresses="^192\.168\.6\.[0-9]+$" /> <!-- SITE 2 -->
</source>
Then i can use this variable to define my %PKG_SOURCE% variable.
 
I suppose, but havn't tried that this can also be placed in the profile.xml for a more centralized way.
 
I doesn't override the SOFTWARE value because i only sync big files between sites which means that not every package is present in the local repository, some of them are only present on the main site...
 
Btw, i didn't found this myself, maybe i have read this in some mailing list, i don't remember anyways.
[[Category:Documentation]]
Anonymous user