Skip to content

Instantly share code, notes, and snippets.

@fairchild
Last active January 2, 2016 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fairchild/8294798 to your computer and use it in GitHub Desktop.
Save fairchild/8294798 to your computer and use it in GitHub Desktop.
sample Vagrantfile
Vagrant.configure(2) do |config|
config.ssh.forward_agent = true
config.vm.define "www", :primary=>true do |www|
end
# ================================================
# = Provider specific configurations below here. =
# ================================================
config.vm.provider :virtualbox do |vbox, override|
vbox.gui = true # Open VirtualBox GUI terminal during provisioning
vbox.customize [ "modifyvm", :id, "--memory", 1024 ]
vbox.customize [ "modifyvm", :id, "--nictype1", "virtio" ]
override.vm.box = "precise64"
override.ssh.private_key_path = "~/.vagrant.d/insecure_private_key"
override.ssh.username = 'vagrant'
override.vm.network :private_network, ip: "192.168.3.33"
override.vm.provision "shell", inline: $pinned_dpkgs
end
config.vm.provision "shell", path: File.dirname(__FILE__)+"/deploy/setup.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment