Created
October 9, 2013 18:56
-
-
Save mattbanks/6906276 to your computer and use it in GitHub Desktop.
Vagrantfile
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
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
config.vm.network :private_network, ip: "192.168.204.72" | |
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", "matts-dev-box"] | |
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant-root", "1"] | |
end | |
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ | |
config.vm.synced_folder "~/Sites", "/var/www", id: "vagrant-root", :nfs => true | |
config.vm.provision :shell, :inline => | |
"if [[ ! -f /apt-get-run ]]; then sudo apt-get update && sudo touch /apt-get-run; fi" | |
config.vm.provision :shell, :inline => 'echo -e "mysql_root_password=rootpassword | |
controluser_password=awesome" > /etc/phpmyadmin.facts;' | |
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