Hello,
My recipe contains single line > include_recipe 'powershell::powershell5' to install WMF5. It works fine but reboot does not happen at the end.
Recipe itself contains following directives
notifies :request, 'windows_reboot[powershell]', :immediately if reboot_pending? && node['powershell']['installation_reboot_mode'] != 'no_reboot'
not_if { ::Powershell::VersionHelper.powershell_version?(node['powershell']['powershell5']['version']) }
How do I tell recipe to go on with reboot if installation did in fact took place?
Log output is below
_file[c:\chef\cache\package\Win8.1AndW2K12R2-KB3134758-x64.msu] updated file contents c:\chef\cache\package\Win8.1AndW2K
12R2-KB3134758-x64.msu
- update content in file c:\chef\cache\package\Win8.1AndW2K12R2-KB3134758-x64.msu from none to bb6af4 (file sizes exceed 10000000 bytes, diff output suppressed)
[2016-05-20T14:10:29-06:00] INFO: windows_package[Windows Management Framework Core 5.0] installed Windows Management Fr
amework Core 5.0 at latest
- install version latest of package Windows Management Framework Core 5.0
Recipe: iis_dsc::basic