Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.9.8
-
Fix Version/s: 0.10.0
-
Component/s: Chef Client, Documentation
-
Labels:None
-
Environment:
Windows 7, One-click ruby installer
Description
Out of curiosity I tried to get the Chef client tools running on Windows, using the newly-released Ruby 1.9.2 installer. The current instructions for installing on Windows note you want the win32-open3 gem, but that gem isn't needed or available for Ruby 1.9.x - you can just use the built-in open3 command.
Fixing Chef is pretty easy - just add a conditional version check in lib/chef/mixin/command/windows.rb that requires 'open3' or 'win32/open3' depending on the RUBY_VERSION.
I haven't run all of the chef-client yet, but this appears to be enough to get Knife to work.
I also found that installing rdp-ruby-wmi not ruby-wmi was needed