-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathVagrantfile.default
More file actions
29 lines (22 loc) · 961 Bytes
/
Vagrantfile.default
File metadata and controls
29 lines (22 loc) · 961 Bytes
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
# Substitute in appropriate keys and config for your own system and copy this file to Vagrantfile
Vagrant::Config.run do |config|
org = 'orgization'
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "your_vagrant_box_name_here"
config.vm.forward_port("web", 80, 8001)
config.vm.forward_port("nodejs", 8080, 8080)
config.ssh.private_key_path = '/path/to/vagrant.pem'
config.vm.provision :chef_server do |chef|
chef.chef_server_url = "https://api.opscode.com/organizations/#{org}"
chef.validation_client_name = "#{org}-validator"
chef.validation_key_path = File.join(ENV['HOME'],'.chef', "#{org}-validator.pem")
chef.node_name = "mockups"
chef.add_recipe('apt')
chef.add_recipe('git::default')
chef.add_recipe('nodejs::default')
chef.add_recipe('nodejs::npm')
chef.add_recipe('mongodb::source')
chef.add_recipe('nginx::default')
chef.add_recipe('mockups')
end
end