Skip to content

Instantly share code, notes, and snippets.

@gawbul
Forked from mattjbarlow/gist:242b66cdae6938d34419
Last active June 21, 2017 19:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gawbul/d9ec3ca138c173963b0ca8a1565cf019 to your computer and use it in GitHub Desktop.
Save gawbul/d9ec3ca138c173963b0ca8a1565cf019 to your computer and use it in GitHub Desktop.
Chef Shell in Test Kitchen
cd /tmp/kitchen.
/opt/chef/embedded/bin/gem install chef-zero
/opt/chef/embedded/bin/chef-zero -d
knife cookbook upload -a -c solo.rb
knife environment from file environments/DEV.json -c solo.rb
chef-shell -z -c solo.rb -o '<YOUR RECIPE>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment