Information Technology Reference
In-Depth Information
the error message! This is where you will need to repeat the
knife cookbook site
> un-tar
>
knife cookbook upload
cycle for any cookbook dependencies.
So, download these two additional cookbooks with the
knife cookbook site
command,
like so:
$
knife cookbook site download cron 1.4.0
$
knife cookbook site download logrotate 1.6.0
Extract them to
chef-repo/cookbooks/
using the tar command, like you did for the
chef-cli-
ent
cookbook.
Linux/Mac OS X:
$
tar xvf cron*.tar.gz -C cookbooks/
$
tar xvf logrotate*.tar.gz -C cookbooks/
Windows:
$
tar xvf cron-1.4.0.tar.gz -C cookbooks
$
tar xvf logrotate-1.6.0.tar.gz -C cookbooks
Finally, upload all the cookbooks,
cron
,
logrotate
, and
chef-client
, using
knife cook-
book upload
, taking care to upload
chef-client
after
its dependencies:
$
knife cookbook upload cron --cookbook-path cookbooks
Uploading cron [1.4.0]
Uploaded 1 cookbook.
$
knife cookbook upload logrotate --cookbook-path cookbooks
Uploading logrotate [1.6.0]
Uploaded 1 cookbook.
$
knife cookbook upload chef-client --cookbook-path cookbooks
Uploading chef-client [3.7.0]
Uploaded 1 cookbook.