-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.rb
30 lines (24 loc) · 860 Bytes
/
default.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
bash "install_vagrant" do
code <<-EOH
sudo sh -c \"echo 'deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free' > /etc/apt/sources.list.d/virtualbox.list\" && sudo wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install -y virtualbox dkms
sudo wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb
sudo dpkg -i vagrant_1.6.3_x86_64.deb
sudo apt-get -f install
sudo mkdir /test
EOH
end
cookbook_file "Vagrantfile" do
path "/test/Vagrantfile"
action :create_if_missing
end
cookbook_file "bootstrap.sh" do
path "/test/bootstrap.sh"
action :create_if_missing
end
cookbook_file "vagrant.war" do
path "/test/vagrant.war"
action :create_if_missing
end
execute "vagrant up" do
cwd "/test"
end