0
votes

I recently started working with chef and am managing my cookbooks in a github repository. Every time I make a change, I am pushing my changes to the github repo then upload everything to the chef server after code promotion email approval. The job executes knife command for uploading to chef server.

I was wondering how you guys manage auto-upload, if at all you have to maintain multiple cookbooks. I don't know a solution as i have to maintain multiple github repos (for multiple cookbooks) along with multiple Jenkins jobs, as a commit to the repo and then execute commands to upload to the chef server Is there an easier way to do it? Anyone already using Chef in production, how do you do it?

Thank you for your help!

1

1 Answers

0
votes

once you push your cookbook changes to the repository, the build server should be triggered to pull the changes and test your cookbook (checkout kitchen, chefspec, inspec, foodcritic, cookstyle).

when the tests are passing, use use knife or berkshelf to upload your cookbook to chef server