Changes

Extended host attribute matching

1,385 bytes added, 16:16, 17 July 2011
added examples
This contains the name of the system, which is also contained in the Windows environment variable %COMPUTERNAME%.
 
'''Example usage:'''
<source lang="xml">
<host hostname="^VM\-.+$" profile-id="VirtualMachines" />
</source>
===os===
* CSD-version (usually the service pack)
* OS-version
 
'''Example usage:'''
<source lang="xml">
<profile id="DesktopPC">
<!-- install Adobe Reader 9 only on Windows 2000 -->
<package package-id="AdobeReader9" os="5\.0\.[0-9][0-9][0-9][0-9]"/>
 
<!-- install Adobe Reader 10 only on Windows XP and higher -->
<package package-id="AdobeReader10" os="5\.[1-9]\.[0-9][0-9][0-9][0-9]|6\.[0-9]\.[0-9][0-9][0-9][0-9]"/>
</profile>
</source>
===architecture===
Notice that a 32-bit Windows version installed on a 64-bit capable CPU is still flagged as 32-bit.
 
'''Example usage:'''
<source lang="xml">
<!-- set destination folder based on architecture -->
<variable name="PKG_DEST" value="%ProgramFiles%\Mozilla Firefox" architecture="x86"/>
<variable name="PKG_DEST" value="%ProgramFiles(x86)%\Mozilla Firefox" architecture="x64"/>
</source>
===ipaddresses===
This contains all currently active IP addresses of the system or an empty string, if no network adapter is currently active.
 
'''Example usage:'''
<source lang="xml">
<host ipaddresses="^10\.0\.0\.[0-9]+$" profile-id="ExternalHosts" />
</source>
===domainname===
This contains the name of the domain the system belongs to or an empty string, if it is not a domain member.
 
'''Example usage:'''
<source lang="xml">
<host domainname="wpkg.org" profile-id="WpkgHosts" />
</source>
===groups===
This contains the names of all groups the system belongs to or an empty string, if it is not a member of any group.
 
'''Example usage:'''
<source lang="xml">
<host groups="office" profile-id="OfficeHosts" />
</source>
===lcid===
This contains the language identifier of the operating system, for a list of possible values visit [http://www.microsoft.com/globaldev/reference/lcid-all.mspx Locale IDs Assigned by Microsoft].
 
'''Example usage:'''
<source lang="xml">
<!-- default language is English -->
<variable name="PKG_LANGUAGE" value="en-us"/>
 
<!-- overwrite default language for German systems -->
<variable name="PKG_LANGUAGE" value="de" lcid="407,c07,1407,1007,807"/>
</source>
[[category:Documentation]]
0
edits