-
-
Save dmitrym0/c6f3107a42a6af756aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Box. | |
config.vm.box = "trusty64" | |
config.vm.network :private_network, ip: "192.168.33.100" | |
# Synched Folder. | |
synched_opts = { nfs: true } | |
nfs_exports = ["rw", "noac", "actimeo=0", "intr", "async", "insecure", "no_subtree_check", "noacl", "lookupcache=none"] | |
if (RUBY_PLATFORM =~ /darwin/) | |
nfs_exports << "maproot=0:0" | |
synched_opts[:bsd__nfs_options] = nfs_exports | |
elsif (RUBY_PLATFORM =~ /linux/) | |
nfs_exports << "no_root_squash" | |
synched_opts[:linux__nfs_options] = nfs_exports | |
end | |
config.vm.synced_folder "~/Projects", "/var/www/vhosts", synched_opts | |
# Provider. | |
config.vm.provider :virtualbox do |vb| | |
vb.name = "example-box" | |
vb.memory = 512 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment