Skip to content

Instantly share code, notes, and snippets.

@willis7
Last active February 24, 2017 10:54
Show Gist options
  • Save willis7/63ae9c0e4868076b56b31ae84ca6e210 to your computer and use it in GitHub Desktop.
Save willis7/63ae9c0e4868076b56b31ae84ca6e210 to your computer and use it in GitHub Desktop.
Chef cheat sheet

Typing chef from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Common chef Commands

Test kitchen

Command Description
kitchen create Creates one or more instances configured in the .kitchen.yml file
kitchen converge Converging the vm(s) with the configured Chef policy (cookbooks, roles, environment and data bags)
kitchen destroy Destroys the instance and deletes all information for the instance
kitchen list List on or more instances and their state (Created, converged, Verified)
kitchen login
kitchen verify Run the test suite(s) configured in the.kitchen.yml file on one or more instances
kitchen test Test (destroys, creates, converges, verifies and destroys) one or more instances

Tips

Housekeeping

Notes

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