Skip to content

Instantly share code, notes, and snippets.

@dhoer
Created December 7, 2015 16:16
Show Gist options
  • Save dhoer/af0391e0895f86e1bef2 to your computer and use it in GitHub Desktop.
Save dhoer/af0391e0895f86e1bef2 to your computer and use it in GitHub Desktop.
Windows development with Chef

Windows development with Chef

General

Platform Version

You can use Ohai's node['platform_version'] version to determine the version, or use Windows Helpers (https://docs.chef.io/windows.html#helpers) to determine platform information. I would recommend using Ohai vs Windows Helpers because helpers will cause rspec testing issues. If you do use helpers, wrap the call in a library method so that it is easy to mock the method call and avoid issues testing on another platform beside windows.

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment