Repository navigation
WPKG 1.3.2
First release since 1.3.1 (2017). It collects the contributions that landed on master plus a fix for the host matching by IP address.
New
- Extended host attribute matching by
makemodelandserial, so host definitions can select machines by the model and the serial number reported by the BIOS. Thanks to Shannon Brooks. - Checks of type
executeaccept adownloadelement. Global package downloads happen just before the first command and are therefore too late for a check. Thanks to Kunzol. - Checks of type
executeaccept atimeoutattribute, working the same way as the timeout of an install command. Thanks to Marco Schmidt. - New
macaddressesextended host attribute listing the MAC addresses of the physical network adapters. Thanks to Kunzol. - A Node.js test harness which loads
wpkg.jsinto a VM context with stubbed Windows Script Host globals, so single functions can be tested on any platform. Run it withnode --test "tests/*.test.js".
Fixed
- Only addresses of network adapters which are currently connected are reported as addresses of the host. Windows keeps the last address of an adapter in the registry after its link went down, so a machine which had been connected at another site kept matching the host definition of that site. The connection state is read from WMI; machines where it cannot be determined keep the previous behaviour and report every address found in the registry. Fixes #5, reported by InformatiqueOLLN.
- The DHCP placeholder address
0.0.0.0is no longer reported as an address of the host. It was already ignored for statically configured addresses.
Upgrading
Replace wpkg.js on the share. No configuration change is required. Host definitions which relied on the address of a disconnected adapter will stop matching, which is the point of the fix.
Full changelog: 1.3.1...1.3.2