-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
34 lines (29 loc) · 1.24 KB
/
Vagrantfile
File metadata and controls
34 lines (29 loc) · 1.24 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "ubuntu"
config.vm.provision "shell", path: "vagrant/vagrant.sh"
config.vm.provision :shell, :privileged => false, :path => "vagrant/bootstrap.sh", :run => 'always'
config.vm.network "private_network", ip: "192.168.18.12"
if Vagrant.has_plugin?("vagrant-hostmanager")
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.vm.hostname = 'robot.work'
config.vm.provision :hostmanager
end
if Vagrant::Util::Platform.windows?
config.vm.synced_folder ".", "/srv/web", type: "nfs", :mount_options => ['dmode=777','fmode=777']
else
config.vm.synced_folder ".", "/srv/web", type: "nfs", :mount_options => ['nolock,vers=3,udp,noatime,actimeo=1']
end
config.vm.provider "virtualbox" do |vb|
# vb.gui = true
vb.customize ["modifyvm", :id, "--memory", "1536"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end