Last active
December 24, 2015 13:49
-
-
Save tjoskar/6807739 to your computer and use it in GitHub Desktop.
A simple Vagrantfile. OBS 777 on shared folder
This file contains hidden or 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
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.network :private_network, ip: "192.168.56.101" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.ssh.forward_agent = true | |
config.vm.provider :virtualbox do |v| | |
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
v.customize ["modifyvm", :id, "--memory", 1024] | |
v.customize ["modifyvm", :id, "--name", "EpisodeHunter"] | |
end | |
config.vm.synced_folder "/Users/Tjoskar/AeroFS/Project", "/var/www", id: "vagrant-root", :mount_options => ['dmode=777', 'fmode=777'] | |
config.vm.provision :shell, :inline => | |
"if [[ ! -f /apt-get-run ]]; then sudo apt-get update && sudo touch /apt-get-run; fi" | |
config.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "manifests" | |
puppet.module_path = "modules" | |
puppet.options = ['--verbose'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment