-
Notifications
You must be signed in to change notification settings - Fork 23
/
Vagrantfile
31 lines (23 loc) · 1.05 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |vconfig|
vconfig.vm.box = "precise64"
vconfig.vm.box_url = "http://files.vagrantup.com/precise64.box"
vconfig.vm.define :site do |config|
config.vm.provider :virtualbox do |v|
# set memory to > 1GB
v.customize [ "modifyvm", :id, "--memory", "1100" ]
# maybe this will help Windows hosts with symlinks
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"]
end
config.vm.host_name = "sitevagrant"
# set lavish permission so that everything is executable
#
config.vm.synced_folder "./", "/vagrant", :mount_options => ['dmode=777', 'fmode=666'] #, :nfs=>true
config.vm.network :private_network, ip: "10.10.10.10"
# forward to port 8888
config.vm.network "forwarded_port", guest: 80, host: 8888
config.vm.provision :shell, :path => "ansible/provision.sh"
end
end