-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
As a user, I would like to be able to upload cookbooks using the go-chef/chef library.
Ruby Chef Cookbook Uploader: https://github.com/chef/chef/blob/main/lib/chef/cookbook_uploader.rb
General Process:
- Parse local cookbook, generating checksums for all cookbook files.
- Create a sandbox with the generated checksums to determine which files will need to be uploaded.
- Use
chef.SandboxPost
- Use
- Upload each cookbook file into the sandbox that has
needs_uploadset to true in thechef.SandboxPostJSON response by performing a PUT to the provided sandbox itemurl. - Commit the sandbox.
- Use
chef.SandboxPut
- Use
- Upload the cookbook version manifest.
Metadata
Metadata
Assignees
Labels
No labels