Skip to content

Instantly share code, notes, and snippets.

@rtacconi
Last active February 6, 2017 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtacconi/908a540a9476064c1fc9bdac188c8350 to your computer and use it in GitHub Desktop.
Save rtacconi/908a540a9476064c1fc9bdac188c8350 to your computer and use it in GitHub Desktop.
Run chef-client in Test Kitchen. It installs Chef Zero and it uploads everything to it.
#!/bin/bash
cd /tmp/kitchen
/opt/chef/embedded/bin/gem install chef-zero
/opt/chef/embedded/bin/chef-zero -d
knife upload / -c client.rb
chef-client -j dna.json -c client.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment