forked from thoughtworks/letshelp.it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
35 lines (27 loc) · 894 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
#configure ssh forward agent
`key_file=~/.ssh/id_rsa && [[ -z $(ssh-add -L | grep $key_file) ]] && ssh-add $key_file`
config.ssh.forward_agent = true
config.vm.define :dev_machine, primary: true do |node|
#forward port for rails
node.vm.network :forwarded_port, host: 3000, guest: 3000
node.vm.provision :shell, :path => "provisioning/bootstrap.sh"
node.vm.provision :copy_my_conf do |copy_conf|
copy_conf.git
copy_conf.vim
end
node.vm.provider "virtualbox" do |vb|
vb.name = "letshelpit_dev"
end
end
end