6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

knife-github-cookbooksの使い方

6
Posted at

chefでサードパーティのcookbookを使いたいときはberkfile使うことが多いと思うんですが、あれ、カスタマイズしたりしたら消えちゃったりしませんか。

とりあえず一つだけgithubから落として使いたいんだよ! ってときはこのgem使うと便利です。

インストールは以下

gem install knife-github-cookbooks

ローカルにあるChefのリポジトリに移動。

cd [chef-repo]

そこでknifeコマンドを実行。

knife cookbook github install [リポジトリ名]

これで対象のリポジトリのcookbookが入ります。

chef-rvmを入れたい場合は以下。

knife cookbook github install fnichol/chef-rvm/v0.9.0

あとは適当にいじります。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?