Ubuntu 14.04 で VirtualBox, Vagrant, vagrant-aws, vagrant-omnibus, Chef のインストール

スポンサーリンク

今や Amazon EC2 の構成は Vagrant と Chef を使用してコードで管理するのが当たり前になりました.その下準備です.Ruby がインストールされていることが前提です.Ruby のインストールについてはこちら

Ubuntu 14.04 (64bit) です.

# ++++++++++++++++++++++++++++++
# VirtualBox
# ++++++++++++++++++++++++++++++
# https://www.virtualbox.org/wiki/Linux_Downloads
cd ~/Downloads
wget http://download.virtualbox.org/virtualbox/4.3.10/virtualbox-4.3_4.3.10-93012~Ubuntu~raring_amd64.deb
#dpkg: dependency problems prevent configuration of virtualbox-4.3:
# virtualbox-4.3 depends on libsdl1.2debian (>= 1.2.11); however:
#  Package libsdl1.2debian is not installed.
#
#dpkg: error processing package virtualbox-4.3 (--install):
# dependency problems - leaving unconfigured
sudo apt-get install libsdl1.2debian
sudo dpkg -i virtualbox-4.3_4.3.10-93012~Ubuntu~raring_amd64.deb 

# ++++++++++++++++++++++++++++++
# Vagrant
# ++++++++++++++++++++++++++++++
# http://www.vagrantup.com/downloads.html
cd ~/Downloads
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.5.3_x86_64.deb
sudo dpkg -i vagrant_1.5.3_x86_64.deb

# ++++++++++++++++++++++++++++++
# vagrant-aws
# ++++++++++++++++++++++++++++++
# https://github.com/mitchellh/vagrant-aws
vagrant plugin install vagrant-aws

# ++++++++++++++++++++++++++++++
# vagrant-omnibus
# ++++++++++++++++++++++++++++++
# https://github.com/schisamo/vagrant-omnibus
vagrant plugin install vagrant-omnibus

# ++++++++++++++++++++++++++++++
# Chef Client
# ++++++++++++++++++++++++++++++
# http://www.getchef.com/chef/install/
sudo apt-get install curl
curl -L https://www.opscode.com/chef/install.sh | sudo bash