Last active
January 2, 2016 11:09
-
-
Save fairchild/8294798 to your computer and use it in GitHub Desktop.
sample 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.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