
Navigate to the cookbook folder in your chef-repo, and generate a new cookbook called ‘testcookbook’. Let’s start with a simple example of creating a text file on the desktop. Verify Test the embedded ChefDK applicationĭeveloping cookbooks on Windows is as easy as on any other platform. Provision provision VMs and clusters via cookbookĮxport Export a policy lock as a chef zero code repoĬlean-policy-revisions Delete unused policy revisions on the serverĬlean-policy-cookbooks Delete unused policyfile cookbooks on the serverĭelete-policy-group Delete a policy group on the serverĭelete-policy Delete all revisions of a policy on the server Show-policy show policyfile objects on your chef serverĭiff generate an itemized diff of two policyfile lock documents Push-archive Push a policy archive to a policy group on the server Push Push a local policy lock to a policy group on the server
#Simple writer windows update
Update Updates a with latest run_list and cookbooks
#Simple writer windows install
Install Install cookbooks from a Policyfile and generate a locked cookbook set Shell-init Initialize your shell to use ChefDK as your primary ruby Generate Generate a new app, cookbook, or component Gem Runs the ‘gem’ command in context of the embedded ruby Service “chef-client” has successfully been installed.Ĭ:\WINDOWS\system32>chef-service-manager -a startĮxec Runs the command in context of the embedded rubyĮnv Prints environment variables used by ChefDK You can check to see if the Chef Client Service is operational by running the following commands: c:\WINDOWS\system32>chef-service-manager -a install This makes it easier than ever to get Chef and Ruby installed on Windows. To get started, you can install the ChefDK install package from here.

Getting StartedĬhef started its support for Microsoft Windows from 2011 when it released the knife-windows plugin. It transforms infrastructure to code-that is, it automates how infrastructure is configured, deployed and managed across your network irrespective of the size of your environment. What is Chef?Ĭhef is an automation platform founded in 2008, and it gives you automation solutions for configuration management, installing packages, etc. Personally, after a brief period of using Chef on Windows, and discovering how convenient they have made it to implement config management for Windows platform, I thought it would be worth sharing my experience. There are hundreds of organisations worldwide with their legacy applications running on Windows, and they are still struggling to automate their infrastructure due to the misconception that DevOps is just for the open source world-and that’s paired with a lack of proper package management solutions for Windows. I think it is safe to say that if you are a developer, you probably hate programming in Windows.
