-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
37 lines (30 loc) · 904 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
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'erb'
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :hostonly, "192.168.33.100"
config.vm.network :bridged
# Use ssh-agent?
config.ssh.forward_agent = true
# Allow symlinks that affect the host machine? Might not work in Windows
#config.vm.customize([
# 'setextradata',
# :id,
# 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root',
# '1'
#])
# Import Vagrantfile.local, and run provision.sh
config.vm.provision :shell do |shell|
load 'Vagrantfile.local.default'
if File.exists?('Vagrantfile.local')
load 'Vagrantfile.local'
end
script = 'provision.sh'
def render file
ERB.new(File.read("#{@relative}#{file}")).result(binding)
end
shell.inline = render script
end
end