forked from irony/node-vagrant-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
53 lines (37 loc) · 1.62 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
45
46
47
48
49
50
51
52
53
######################################################################
# #
# Vagrant configuration file #
# author: Paweł Chalacis <[email protected]> #
# this box contains: #
# - nodejs #
# - nginx #
# - mongodb #
# - redis #
######################################################################
Vagrant::Config.run do |config|
config.vm.customize [
'modifyvm', :id,
'--memory', 1024,
'--cpus', 1
]
config.vm.boot_mode = 'headless'
config.vm.host_name = "nodeserver"
config.vm.box = 'Ubuntu-12.04'
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
config.vm.forward_port 22, 2200
config.vm.forward_port 80, 9000
config.vm.forward_port 8001, 9001
config.ssh.max_tries = 50
config.ssh.timeout = 300
config.ssh.forward_agent = true
# Enable and configure the chef solo provisioner
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = 'build/cookbooks'
chef.add_recipe('build-essential')
chef.add_recipe('apt-get')
chef.add_recipe('vim')
chef.add_recipe('nodejs')
chef.add_recipe('nginx')
chef.log_level = :info
end
end