-
Instale o VirtualBox, disponível em https://www.virtualbox.org/;
-
Instale Vagrant >= 1.1.X, disponivel no site http://vagrantup.com;
-
Instale ruby 1.9;
-
Instale chef:
> gem install chef
-
Instale vagrant-omnibus. Este plugin garante que o Chef estará instalado na versão correta na VM:
> vagrant plugin install vagrant-omnibus
-
Instale uma box do Ubuntu 12.04 no Vagrant :
> vagrant box add precise64 http://dl.dropbox.com/u/1537815/precise64.box
(caso prefira outro sabor de Linux, existe uma lista bastante grande de listadas em http://www.vagrantbox.es/)
-
Baixe o meu template de código no GitHub:
> git clone git://github.com/mgalves/vagrant-chef-nginx.git
-
Entre no diretório
vagrant-chef-nginx/chef_repo
; -
Rode o comando:
> vagrant up
-
Acesse http://192.168.33.10/;
-
Voilá!