LoginSignup
2
2

More than 5 years have passed since last update.

Chefのライブラリーを管理するBerkshelfを使ってみる

Last updated at Posted at 2013-06-04

chefのレポジトリーはtest-chefです。
Gemfileをtest-chef/に作成

Gemfile
source :rubygems 
gem 'berkshelf'
gem 'knife-solo'

Berkshelfの設定ファイルであるBerksfileを作成する。
ダウンロードできるcookbookはhttp://community.opscode.com/で検索出来ます。

Berksfile
site :opscode 
cookbook 'yum'
$ bundle install
$ berks --path cookbooks

nodes/melody.json
{
  "run_list":[
    "yum::epel"
  ]
}

入門Chef Soloに書いたあるように
recipe[yum]
でかいてもうまく行かなかった。
入門Chef Soloと環境が違うのか、上記のように書くとうまく行った。

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