Search code examples
chef-infraknife

Chef: use knife upload to push a local version of a cookbook that has been modified & repurposed from supermarket


So I cloned a cookbook from the chef supermarket but I do NOT want to use their versioning, however, it is important for us to be able to version entire cookbooks on our chef server.

I am trying to figure out how to do this and am having very little luck finding an answer... I just don't want every single cookbook to default to version 0.0.0.

This is what I see currently:

enter image description here


Solution

  • Modify version setting of metadata.rb in the downloaded cookbook to your preferable version.

    But if you want all of cookbooks you downloaded to be the version you want to control for any reason. You could probably iterate through all cookbooks and update version in metadata.rb programatically.