forked from larvalabs/pullup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (30 loc) · 1.12 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
CUSTOM_CONFIG = {
"BOX_NAME" => "precise64",
"BOX_URL" => "http://files.vagrantup.com/precise64.box",
"HEADLESS" => false
}
Vagrant.configure("2") do |config|
# Change this to the name of your Vagrant base box.
config.vm.box = CUSTOM_CONFIG['BOX_NAME']
# Change this to a URL from which the base box can be downloaded, if you like.
config.vm.box_url = CUSTOM_CONFIG['BOX_URL']
# we will run node.js on port 3000
config.vm.network :forwarded_port, guest: 3000, host: 3000
# headless? uncomment this to have the VM's window available
config.vm.provider :virtualbox do |vb|
vb.gui = CUSTOM_CONFIG['HEADLESS']
end
# forward SSH keys
config.ssh.forward_agent = true
if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM)
# provisioning with ansible on windows
config.vm.provision "shell", path: "./vagrant/ansible-windows.sh"
else
# provisioning with ansible
config.vm.provision :ansible do |ansible|
ansible.playbook = "./vagrant/playbook.yml"
end
end
end