2013年7月10日水曜日

chef knife-solo インストール

$sudo gem install knife-solo --pre

Successfully installed knife-solo-0.3.0.pre5
1 gem installed

成功

2013年7月9日火曜日

vagrant 設定

$vagrant init
$vi Vagrantfile
$ diff Vagrantfile Vagrantfile.org
112,116d111
< Vagrant::Config.run do |config|
< config.vm.box = "base"
< config.vm.network:hostonly,
< "192.168.50.12"
< end

$vagrant up
#ログインする
$vagrant ssh

成功

vagrant install

chefを利用するためにvagrantをインストールする

Mac OS X 10.7.5

$sudo gem install vagrant
$vagrant box add base http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box

Failed to untar the box file. This is usually because you're
attempting to add a box that isn't a valid box file. Please
double check that the box file is properly packaged.

error
#vagrantのヴァージョンを確認
$ vagrant -v
Vagrant version 1.0.7

調べた
http://nushu123.blogspot.jp/2013/06/vagrant-box-addfailed-to-untar-box.html
https://github.com/mitchellh/vagrant/issues/977

VAGRANT_HOME??

$VAGRANT_HOME=/vagrant/path
$export VARGRANT_HOME
もう一回実行
Failed to untar the box file. This is usually because you're
attempting to add a box that isn't a valid box file. Please
double check that the box file is properly packaged.
同じエラー

http://zakuni.blogspot.jp/2013/06/macvagrant.html
http://docs.vagrantup.com/v2/installation/

------

Gem Install?

Vagrant 1.0.x had the option to be installed as a RubyGem. This installation method has been removed for installers and packages only.
------
アンインストール
$sudo gem uninstall vagrant

vagrant 再インストール
http://downloads.vagrantup.com/tags/v1.2.2/
Vagrant-1.2.2.dmg
インストール

$ which vagrant
/usr/bin/vagrant

$ vagrant -v
Vagrant version 1.2.2

再度実行
Successfully added box 'base' with provider 'virtualbox'!
成功