[wpkg-users] Host match disruptive changes in 1.2?

Marco Gaiarin gaio at sv.lnf.it
Tue Jul 19 12:37:47 CEST 2011


Really i've not understood the new ''host matching'' schema, or i'm
missing something, but something big.

I've switched to wpkg.js 1.2, and at the fist run on a test machine:

 2011-07-19 11:54:26, DEBUG   : Initialized temporary local log file: C:\WINDOWS\TEMP\wpkg-logInit.log
 2011-07-19 11:54:26, DEBUG   : Initializing new log file: C:\WINDOWS\TEMP\wpkg-voldemort.log
 2011-07-19 11:54:26, DEBUG   : Reboot-Cmd is standard.
 2011-07-19 11:54:26, DEBUG   : WPKG 1.2 starting...
 2011-07-19 11:54:26, DEBUG   : Base directory is '\\FILE\wpkg'.
 2011-07-19 11:54:26, DEBUG   : Log level is 255
 2011-07-19 11:54:26, DEBUG   : Trying to read XML file: \\FILE\wpkg\profiles.xml
 2011-07-19 11:54:26, DEBUG   : Successfully loaded XML file: \\FILE\wpkg\profiles.xml
 2011-07-19 11:54:26, DEBUG   : Trying to read XML files from directory: \\FILE\wpkg\profiles
 [...]
 2011-07-19 11:54:27, DEBUG   : Reading XML file: //FILE/wpkg/profiles/ced.xml
 [...]
 2011-07-19 11:54:27, DEBUG   : Trying to read XML file: \\FILE\wpkg\hosts.xml
 2011-07-19 11:54:27, DEBUG   : Successfully loaded XML file: \\FILE\wpkg\hosts.xml
 2011-07-19 11:54:27, DEBUG   : Trying to read XML files from directory: \\FILE\wpkg\hosts
 [...]
 2011-07-19 11:54:27, DEBUG   : Reading XML file: //FILE/wpkg/hosts/ced.xml
 [...]
 2011-07-19 11:54:27, DEBUG   : Trying to read XML file: \\FILE\wpkg\packages.xml
 2011-07-19 11:54:27, DEBUG   : Successfully loaded XML file: \\FILE\wpkg\packages.xml
 2011-07-19 11:54:27, DEBUG   : Trying to read XML files from directory: \\FILE\wpkg\packages
 2011-07-19 11:54:27, DEBUG   : Reading XML file: //FILE/wpkg/packages/kb979682.xml
 2011-07-19 11:54:27, DEBUG   : Reading XML file: //FILE/wpkg/packages/qmc.xml
 2011-07-19 11:54:27, DEBUG   : Reading XML file: //FILE/wpkg/packages/7zip.xml
 2011-07-19 11:54:27, DEBUG   : Reading XML file: //FILE/wpkg/packages/quicktime.xml
 2011-07-19 11:54:27, DEBUG   : Reading XML file: //FILE/wpkg/packages/reader.xml
 [...]
 2011-07-19 11:54:34, DEBUG   : Found network service: {6703392F-0C4E-44B4-AE97-24BAB72D9374}
 2011-07-19 11:54:34, DEBUG   : Reading DHCP address.
 2011-07-19 11:54:34, DEBUG   : Found DHCP address: 10.5.2.240
 2011-07-19 11:54:34, DEBUG   : Host operating system: microsoft windows xp professional, , sp3, 5.1.2600
 2011-07-19 11:54:34, DEBUG   : Domain Name: sanvito
 2011-07-19 11:54:35, DEBUG   : Found computer group: Domain Computers
 2011-07-19 11:54:35, DEBUG   : Found system locale: 410
 2011-07-19 11:54:35, DEBUG   : Host properties: hostname='voldemort'|architecture='x86'|os='microsoft windows xp professional, , sp3, 5.1.2600'|ipaddresses='10.5.2.240'|domain name='sanvito'|groups='Domain Computers'|lcid='410'
 2011-07-19 11:54:35, DEBUG   : Single-match mode. Host match finished.
 2011-07-19 11:54:35, DEBUG   : Profiles applying to the current host:|default|
 2011-07-19 11:54:35, DEBUG   : Reading settings file: C:\WINDOWS\system32\wpkg.xml
 2011-07-19 11:54:35, DEBUG   : Trying to read XML file: C:\WINDOWS\system32\wpkg.xml
 2011-07-19 11:54:35, DEBUG   : Successfully loaded XML file: C:\WINDOWS\system32\wpkg.xml
 2011-07-19 11:54:35, DEBUG   : Saving current environment
 2011-07-19 11:54:35, DEBUG   : Getting profiles which apply to this node.
 2011-07-19 11:54:35, DEBUG   : Applying profile: default
 2011-07-19 11:54:35, DEBUG   : Adding profile dependencies of profile 'default': 'base'
 2011-07-19 11:54:35, DEBUG   : Adding package with ID 'xptweaks-disable-csc' to profile packages.
 [...]

computer voldemort (really, a virtual machine, on my linux box lily; yes,
harry was my previous one ;) was on profile 'ced', but wpkg.js now
match profile 'defult'.

\\FILE\wpkg\hosts.xml contains:

	<host name=".+" profile-id="default" />

while //FILE/wpkg/hosts/ced.xml contains:

	<wpkg>
	    <host name="voldemort" profile-id="ced" />
	    <host name="neobe" profile-id="ced" />
	</wpkg>

What happens?! I've seen 'applyMultiple' option, but:

1) why break ''retrocompatibility''?!

2) how can i assign a single profile (applyMultiple=false) while having
 a ''default'' assigned profile?


Sorry, probably i've missed something. Thanks.

-- 
dott. Marco Gaiarin				    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it	  tel +39-0434-842711  fax +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
	   http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the wpkg-users mailing list