Skip to content

Instantly share code, notes, and snippets.

@gjohnson
Last active January 20, 2016 21:04
Show Gist options
  • Save gjohnson/8e96bcb978c6dae157f6 to your computer and use it in GitHub Desktop.
Save gjohnson/8e96bcb978c6dae157f6 to your computer and use it in GitHub Desktop.
My base vagrant file
required_plugins = %w( vagrant-faster vagrant-cachier vagrant-vbguest )
required_plugins.each do |plugin|
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/vivid64"
config.vm.box_check_update = true
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder ".", "/vagrant"
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get autoremove
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment