Skip to content

Instantly share code, notes, and snippets.

@DannyNunez
Created May 19, 2014 19:58
Show Gist options
  • Save DannyNunez/94d2659d4f4432420fd6 to your computer and use it in GitHub Desktop.
Save DannyNunez/94d2659d4f4432420fd6 to your computer and use it in GitHub Desktop.
Vagrant File to allow VM write access to file on the host Machine
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.21"
config.vm.provision :shell, :path => "install.sh"
config.vm.synced_folder ".", "/var/www",
owner: "vagrant",
group: "www-data",
mount_options: ["dmode=775,fmode=664"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment