LoginSignup
1
2

More than 5 years have passed since last update.

berks install時のエラー

Posted at

bundle exec berks install --path ./cookbooksを実行したら下記のように
怒られました。

$ bundle exec berks install --path ./cookbooks
DEPRECATED: `berks install --path [PATH}` has been replaced by `berks vendor`.
DEPRECATED: Re-run your command as `berks vendor [PATH]` or see `berks help vendor`.

Berkshelfのバージョンを調べたところ

$ berks -v
3.1.5

現在のバージョンでは下記のように書くらしいです。

$ bundle exec berks vendor cookbooks

気をとりなおして、bunlde exec berks vendor cookbooksを実行するとまたも怒られました。

$ bundle exec berks vendor cookbooks
DEPRECATED: Your Berksfile contains a site location pointing to the Opscode Community Site (site :opscode). Site locations have been replaced by the source location. Change this to: 'source "https://supermarket.getchef.com"' to remove this warning. For more information visit https://github.com/berkshelf/berkshelf/wiki/deprecated-locations
Resolving cookbooks dependencies...
Fetching 'nginx' from source at site-cookbooks/nginx
Fetching cookbooks index from https://supermarket.getchef.com...
Using nginx (0.1.0) from source at site-cookbooks/nginx
Using yum (3.3.2)
Using yum-epel (0.5.1)
Vendoring nginx (0.1.0) to /home/dev/study/chef/6/cookbooks/nginx
Vendoring yum (3.3.2) to /home/dev/study/chef/6/cookbooks/yum
Vendoring yum-epel (0.5.1) to /home/dev/study/chef/6/cookbooks/yum-epel

一応クックブックは作ってくれたようですが、Berkshelfの2系以降はBerksfileの1行目は
site :opscodeではなくsource "https://supermarket.getchef.com"と書くようです。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2