- Create a new repo in Github and copy the link
- From the terminal, navigate to the cookbooks directory in my chef_repo directory and run
git clone <link>
- Now run
chef generate cookbook <COOKBOOK_PATH/COOKBOOK_NAME> (options)
from the directory that you want to parent your cookbook
- adding / editing cookbook files
- adding / editing InSpec profiles
- Converge all resources successfully.
- All tests pass.
Here's a good link for branching and committing.
- go to Chef workflow #2 on "Install and upload policy to Chef server" to deploy