Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell cookbook on the supermarket fails with the latest version of the windows cookbook #99

Closed
mariowood opened this issue Oct 21, 2016 · 0 comments

Comments

@mariowood
Copy link

mariowood commented Oct 21, 2016

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:

  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```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant