Skip to content
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
Closed

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

jeremymv2 opened this issue Nov 1, 2016 · 2 comments
Assignees

Comments

@jeremymv2
Copy link
Contributor

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
Copy link
Contributor

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

@jeremymv2
Copy link
Contributor Author

sure

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

No branches or pull requests

4 participants