Search code examples
chef-infrachef-recipecookbookberkshelf

Uploading recipe changes to chef server using Berkshelf


I'm in the process of customizing community cookbooks (cassandra and elasticsearch) for use in production. From trying to get to grips with Berkshelf I have found myself uploading changes to my wrapper cookbook recipes from within my ~/chef-repo/cookbooks/ by executing:

Berks upload -b ./Berksfile --no-ssl-verify --force

This gets past the fact that my chef server is not certified, and overcomes the "frozen" cookbooks.

I'm sure that there's a better way to upload simple changes to my chef-server, as it feels somewhat extreme to force a re-upload of the entire cookbook and all it's dependencies?

Thanks in advance for any help.


Solution

  • Berks upload -b ./Berksfile --no-ssl-verify --force <my cookbook name>

    That will upload just the one cookbook you want (ie, the one you changed)