New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md "Upload cookbook to Chef Server" #136

Closed
jeremymv2 opened this Issue Nov 1, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@jeremymv2
Contributor

jeremymv2 commented Nov 1, 2016

Cookbook version

2.0.0

Chef-client version

n/a

Platform Details

n/a

Scenario:

https://github.com/chef-cookbooks/audit#upload-cookbook-to-chef-server

If you want to upload the cookbook from git, use the following commands:

mkdir chef-cookbooks
cd chef-cookbooks
git clone https://github.com/chef-cookbooks/audit
cd ..
knife cookbook upload audit -o ./chef-cookbooks

Steps to Reproduce:

Follow the exact commands above verbatim.

Expected Result:

audit cookbook uploaded

Actual Result:

$ knife cookbook upload audit -o ./chef-cookbooks
Uploading audit        [2.0.0]
ERROR: Cookbook audit depends on cookbooks which are not currently
ERROR: being uploaded and cannot be found on the server.
ERROR: The missing cookbook(s) are: 'compat_resource' version '>= 0.0.0', 'chef_handler' version '>= 0.0.0'
$

Since there are dependency cookbooks now (compat_resource, chef_handler), we need to use berks to help.

$ berks vendor -e integration
Resolving cookbook dependencies...
Fetching 'audit' from source at .
Using audit (2.0.0) from source at .
Using compat_resource (12.16.1)
Using chef_handler (2.0.0)
Vendoring audit (2.0.0) to /Users/jmiller/Devel/ChefProject/audit/berks-cookbooks/audit
Vendoring chef_handler (2.0.0) to /Users/jmiller/Devel/ChefProject/audit/berks-cookbooks/chef_handler
Vendoring compat_resource (12.16.1) to /Users/jmiller/Devel/ChefProject/audit/berks-cookbooks/compat_resource
$ knife cookbook upload -a -o berks-cookbooks
Uploading audit          [2.0.0]
Uploading chef_handler   [2.0.0]
Uploading compat_resource [12.16.1]
Uploaded all cookbooks.
$
@chris-rock

This comment has been minimized.

Collaborator

chris-rock commented Nov 1, 2016

@jeremymv2 Nice, would you like to update the readme via PR?

@jeremymv2

This comment has been minimized.

Contributor

jeremymv2 commented Nov 1, 2016

sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment