Module Version: 1.4.0
Puppet Version: 4.8.2
OS Name/Version: Windows Server 2016
After rebuilding puppetlabs-dsc module with a new DSC resource (xSystemVirtualMemory), and using it to apply a configuration a message is presented and the machine is not rebooted.
xSystemVirtualMemory DSC resource available here: https://github.com/msperrin/xSystemVirtualMemory/blob/master/DSCResources/xSystemVirtualMemory/xSystemVirtualMemory.psm1
This resource tries to reboot the machine after changing the page file. Before, on puppetlabs-dsc version 1.3.0 this resource was working properly and rebooting after changing the page file. Now starting from version 1.3.1, the PowerShell provider was updated (https://github.com/puppetlabs/puppetlabs-dsc/blob/master/lib/puppet/provider/base_dsc/powershell.rb), the xSystemVirtualMemory is applied but it does not reboot and gives the following warning:
reboot the computer after applying the xSystemVirtualMemory resource
Actual Behavior: After the puppet run, the agent gives a warning and the machine is not rebooted.