http://wiki.opscode.com/display/chef/Installing+Omnibus+Chef+Client+on+Linux+and+Mac
$ sudo true && curl -L https://www.opscode.com/chef/install.sh | sudo bash $ chef-solo -v Chef: 11.4.4knifeの設定
# とりあえず全てデフォルト。設定ファイルは ~/.chef/knife.rb $ knife configureknife-solo(0.3.0)のインストール
$ sudo gem install knife-solo --pre $ vim ~/.chef/knife.rb # 以下を追記 knife[:solo_path] = '/tmp/chef-solo'参考: http://k-mats.github.io/blog/2013/04/12/set-up-knife-solo/
knife-soloで、以下で作成したVagrantの仮想マシンにchef-soloをインストール(sshコマンドでログイン出来るようにしておくこと)
Vagrantのインストールと起動メモ http://madroom-project.blogspot.jp/2013/07/vagrant.html
# xxxはホスト名(Vagrant) $ knife solo prepare xxx Bootstrapping Chef... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 6516 100 6516 0 0 985 0 0:00:06 0:00:06 --:--:-- 4292 Downloading Chef 11.4.4 for ubuntu... Installing Chef 11.4.4 (Reading database ... 65296 files and directories currently installed.) Preparing to replace chef 10.12.0-3 (using .../chef_11.4.4_amd64.deb) ... * Stopping chef-client chef-client [ OK ] Unpacking replacement chef ... dpkg: warning: unable to delete old directory '/etc/chef': Directory not empty dpkg: warning: unable to delete old directory '/var/log/chef': Directory not empty Setting up chef (11.4.4-2.ubuntu.11.04) ... Thank you for installing Chef! Processing triggers for ureadahead ... Processing triggers for man-db ... Generating node config 'nodes/ubuntu1304.json'...Vagrantの仮想マシンでchef-soloのバージョンを確認
$ ssh xxx ~$ chef-solo -v Chef: 11.4.4
No comments:
Post a Comment