Help us understand the problem. What is going on with this article?

MacでChef環境を整える

More than 5 years have passed since last update.

chefとknife soloが使用できる環境を整えます。

chefのインストール方法は公式のドキュメントに従っています。
http://www.getchef.com/chef/install/

次のコマンドでchefをインストールできます。

$ curl -L https://www.opscode.com/chef/install.sh | sudo bash

次に、knifeコマンドの初期設定を行います。

$ knife configure

色々と質問されますが全てデフォルトのままで済ませます。

続けてknife-soloのインストールです。
chefのバージョン11から、chefにrubyも含まれているのでそのgemを使用します。

$ sudo /opt/chef/embedded/bin/gem install knife-solo

では、knife-soloでレポジトリ(キッチン)を作成してみます。

$ knife solo init chef-repo
Creating kitchen...
Creating knife.rb in kitchen...
Creating cupboards...
Setting up Librarian...

chef-repoディレクトリのできあがり。

$ ls chef-repo 
Cheffile
data_bags
roles
cookbooks
nodes
site-cookbooks

料理の準備ができました。

pakiln
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした