LoginSignup
4
4

More than 5 years have passed since last update.

chefでnginxをインストールする際にこけた箇所(yumのリポジトリ追加)

Last updated at Posted at 2015-04-03

chefでnginxをインストールする際に


ERROR: Cookbook yum not found. If you're loading yum from another cookbook, make sure you configure the dependency in your metadata

というエラーが起きました。
centOSで起きるみたいで centOS の yumのリポジトリ設定が足りないそうです。
(引用:http://xoyip.hatenablog.com/entry/2013/04/16/140000

んで


$ cd chef-repo
$ knife cookbook site vendor yum

でリポジトリの追加ができる。ということだったのですが

ERROR: The cookbook repo path /home/vagrant/.chef/cookbooks does not exist or is not a directory

こんなエラーが。。。

$ knife cookbook site vendor yum -o cookbooks/

ちゃんとパスを指定しないさい。ということですね。

注)ディレクトリについては
http://tatsu-zine.com/books/chef-solo
を参照

4
4
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
4
4