Recommended way to upload community cookbook to internal Chef server

I would like to upload some community cookbooks onto my company’s internal Chef server and internal Chef Supermarket so we don’t have to go out to the internet to pull those cookbooks down.

What’s the recommended way to do that?

I noticed that in the case of the ohai 5.1.0 cookbook, the cookbook’s contents are different depending on whether I go to the Chef Supermarket and do “Download Cookbook,” or go to GitHub, clone the repo, and check out the commit corresponding to the cookbook version I want. (See list of diffs below.) I’m not sure what those diffs are about, or which source of the cookbook I should use to upload it to my company’s Chef server and internal Chef Supermarket.

One thing I noticed with ohai 5.1.0 downloaded from the Supermarket: it has a metadata.json file but no metadata.rb file – and our internal Chef Supermarket does not appear to let me upload a cookbook without a metadata.rb file. That makes me think I should be using the GitHub version – only, I’m not sure what all those extra files are that come with the GitHub version, so I’m confused.

I’d appreciate any insights you folks might have.

Thanks!

$ diff -r pristine_from_github pristine_from_supermarket/
Only in pristine_from_github/ohai: appveyor.yml
Only in pristine_from_github/ohai: Berksfile
Only in pristine_from_github/ohai: chefignore
Only in pristine_from_github/ohai: .delivery
Only in pristine_from_github/ohai: Gemfile
Only in pristine_from_github/ohai: .git
Only in pristine_from_github/ohai: .github
Only in pristine_from_github/ohai: .gitignore
Only in pristine_from_github/ohai: .kitchen.appveyor.yml
Only in pristine_from_github/ohai: .kitchen.dokken.yml
Only in pristine_from_github/ohai: .kitchen.yml
Only in pristine_from_github/ohai: LICENSE
Only in pristine_from_github/ohai: MAINTAINERS.toml
Only in pristine_from_supermarket/ohai: metadata.json
Only in pristine_from_github/ohai: metadata.rb
Only in pristine_from_github/ohai: spec
Only in pristine_from_github/ohai: tasks
Only in pristine_from_github/ohai: test
Only in pristine_from_github/ohai: TESTING.md
Only in pristine_from_github/ohai: .travis.yml