Created
December 6, 2012 08:00
-
-
Save sakama/4222642 to your computer and use it in GitHub Desktop.
Chef Serverのインストール
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#パッケージレポジトリの登録 | |
echo “deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main” | tee /etc/apt/sources.list.d/opscode.list | |
#listの確認 | |
cat /etc/apt/sources.list.d/opscode.list | |
deb http://apt.opscode.com/ precise-0.10 main | |
#キーの登録 | |
mkdir -p /etc/apt/trusted.gpg.d | |
gpg –keyserver keys.gnupg.net –recv-keys 83EF826A | |
gpg –export [email protected] | tee /etc/apt/trusted.gpg.d/opscode-keyring.gpg > /dev/null | |
apt-get update | |
apt-get install opscode-keyring #permanent upgradeable keyring | |
#システム全体のアップデート | |
apt-get upgrade | |
#クライアントの場合 | |
apt-get install chef | |
#サーバの場合 | |
apt-get install chef chef-server | |
#インストール中、URL of Chef Serverというプロンプトが出てくると思いますが、ここはChef ServerのURLを入力。 | |
#ここではlocalhostのChef Serverを参照するものとして勧める | |
http://localhost:4000 | |
#RabbitMQのパスワードの設定なども聞かれるが適宜入力 | |
#インストール完了 | |
chef-client -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment