You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on the chef server have cookbook versions:
windows 2.0.2
powershell 5.0.0 (from chef supermarket, not this repo)
use the following attributes:
"powershell": {
"installation_reboot_mode": "immediate_reboot"
}
Expected Result:
WMF 5.0 is installed
Actual Result:
The cookbook fails to compile with the following error:
Recipe Compile Error
================================================================================
Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe reboot_handler for cookbook windows
Cookbook Trace:
---------------
c:/chef/cache/cookbooks/powershell/recipes/windows_reboot.rb:5:in `from_file'
c:/chef/cache/cookbooks/powershell/recipes/powershell5.rb:29:in `from_file'
c:/chef/cache/cookbooks/t1_winserver/recipes/common_software.rb:10:in `from_file'
Relevant File Content:
----------------------
c:/chef/cache/cookbooks/powershell/recipes/windows_reboot.rb:
1: # this recipe can be called from any recipe for windows reboot. Just specify default['powershell']['reboot_notifier']
2: node.default['windows']['allow_pending_reboots'] = true
3: node.default['windows']['allow_reboot_on_failure'] = true
4:
5>> include_recipe 'windows::reboot_handler'
6:
7: windows_reboot 'powershell' do
8: reason 'Reboot after successful/unsuccessful powershell installation'
9: timeout node['powershell']['reboot_timeout_seconds']
10: action :nothing
11: notifies :run, 'ruby_block[end_chef_run]', :immediately if node['powershell']['installation_reboot_mode'] == 'immediate_reboot'
12: end
13:
14: # The reboot handler only does something at the end of the chef run. If it
Platform:
---------
x64-mingw32```
The text was updated successfully, but these errors were encountered:
Cookbook version
5.0.0
Chef-client version
12.15.19
Platform Details
Windows 2012 R2
Scenario:
Install WMF 5
Steps to Reproduce:
have a runlist with powershell::powershell5
on the chef server have cookbook versions:
windows 2.0.2
powershell 5.0.0 (from chef supermarket, not this repo)
use the following attributes:
"powershell": {
"installation_reboot_mode": "immediate_reboot"
}
Expected Result:
WMF 5.0 is installed
Actual Result:
The cookbook fails to compile with the following error:
The text was updated successfully, but these errors were encountered: