chef windows cookbook compile error, cannot find file windows/error -
on chef-client run, i'm seeing windows cookbook compile error, show below. trying require in can't find, , how fix? 'windows/error' ruby gem or else?
================================================================================ recipe compile error in c:/chef/cache/cookbooks/windows/libraries/windows_privileged.rb ================================================================================ loaderror --------- cannot load such file -- windows/error cookbook trace: --------------- c:/chef/cache/cookbooks/windows/libraries/windows_privileged.rb:24:in `<top (required)>' relevant file content: ---------------------- c:/chef/cache/cookbooks/windows/libraries/windows_privileged.rb: 17: # distributed under license distributed on "as is" basis, 18: # without warranties or conditions of kind, either express or implied. 19: # see license specific language governing permissions , 20: # limitations under license. 21: # 22: 23: if ruby_platform =~ /mswin|mingw32|windows/ 24>> require 'windows/error' 25: require 'windows/registry' 26: require 'windows/process' 27: require 'windows/security' 28: end 29: 30: #helpers windows api calls require privilege adjustments 31: class chef 32: class windowsprivileged 33: if ruby_platform =~ /mswin|mingw32|windows/ running handlers: [2016-02-08t09:31:54-08:00] error: running exception handlers running handlers complete [2016-02-08t09:31:54-08:00] error: exception handlers complete chef client failed. 0 resources updated in 01 minutes 44 seconds
found solution friend.
chef-client versions > 12.5 need install gem
gem install windows-pr
to find solution, go cookbook github repo , search in "issues" there. that's method, here's direct link: https://github.com/chef-cookbooks/windows/issues/276
Comments
Post a Comment