You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
$
The text was updated successfully, but these errors were encountered:
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
Steps to Reproduce:
Follow the exact commands above verbatim.
Expected Result:
audit cookbook uploaded
Actual Result:
Since there are dependency cookbooks now (compat_resource, chef_handler), we need to use berks to help.
The text was updated successfully, but these errors were encountered: