Chef Supermarket cookbooks with no metadata.rb file

Viewed 1486

When installing / downloading cookbooks from Chef's Supermarket, some cookbooks do include a metadata.json file, however do not include a metadata.rb file.

Without the metadata.rb file a user is unable to upload the cookbook to the chef server. My question is two fold:

  1. Is there a way to generate a proper metadata.rb file for the project if a downloaded / installed cookbook does not include one?
  2. If there is a way to upload the cookbook to the chef server when there is no metadata.rb?

Here's the version of ChefDK running on my workstation:

  1. Chef Development Kit Version: 1.3.43
  2. chef-client version: 12.19.36
  3. delivery version: master (dd319aa632c2f550c92a2172b9d1226478fea997)
  4. berks version: 5.6.4
  5. kitchen version: 1.16.0

Here's the commands and cookbook I'm using to get the cookbook from Supermarket:

  1. knife cookbook site download jenkins
  2. knife cookbook site install jenkins

URL: https://supermarket.chef.io/cookbooks/jenkins#readme

Thanks for any help. I haven't been able to find much in Chef's documentation on working with cookbooks that do not have a metadata.rb file included. From what I've read, every cookbook should have a metadata.rb file located in each cookbook directory.

2 Answers
Related