Chef Solo working on Windows

How to get Chef Solo working on Windows?

Hi, please follow these steps:

  1. Install the Chef Windows MSI.
  2. Read the Chef Solo Documentation - docs.getchef.com/chef_solo.html

To use Chef Solo on windows:

  1. Create a solo.rb configuration file. This should point to the location of the cookbooks which you are using. For instance, “C:\chef\cookbooks”
  2. Create a JSON file that describes the node for instance, node1.json:

{ “run_list”: “recipe[windows]”, “recipe[mycookbook_one”]] }

Please specify the actual cookbooks name in the location in solo.rb file. You can download several cookbooks from the Chef community site that already work with Windows - community.opscode.com/cookbooks/windows

Run chef-solo specifying the config file(solo.rb) and the JSON file(node1.json). Execute this as root (admin).

chef-solo -c solo.rb -j node1.json

This should work.