-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
44 lines (31 loc) · 1.03 KB
/
Vagrantfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# InBeat - vagrant + virtualbox + ubuntu + chef
# @author Jaroslav Kuchař (https://github.com/jaroslav-kuchar)
#
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "inbeat"
# frontend
config.vm.network :forwarded_port, guest: 80, host: 8880
config.vm.network :forwarded_port, guest: 443, host: 8443
config.vm.synced_folder "inbeat", "/var/www/inbeat"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
# increase swap: http://jeqo.github.io/blog/devops/vagrant-quickstart/
config.vm.provision "shell", path: "increase_swap.sh"
config.vm.provision :chef_solo do |chef|
chef.custom_config_path = "Vagrantfile.chef"
chef.cookbooks_path = "cookbooks"
chef.add_recipe "inbeat::default"
chef.json = {
"inbeat" => {
"root" => "/var/www/inbeat"
}
}
end
end