diff --git a/Vagrantfile b/Vagrantfile index e928b3c6b..c9b648219 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -4,7 +4,9 @@ # Ruby, run unit tests, etc. Vagrant.configure("2") do |config| - config.vm.box = "hashicorp/precise64" + config.vm.box = "ubuntu/trusty64" + config.vm.hostname = "vagrant" + config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" ["vmware_fusion", "vmware_workstation", "virtualbox"].each do |provider| config.vm.provider provider do |v, override| @@ -24,6 +26,7 @@ Vagrant.configure("2") do |config| end $shell = <<-CONTENTS +export DEBIAN_FRONTEND=noninteractive MARKER_FILE="/usr/local/etc/vagrant_provision_marker" # Only provision once @@ -37,8 +40,11 @@ apt-get update # Install basic dependencies apt-get install -y build-essential bsdtar curl +# Import the mpapis public key to verify downloaded releases +su -l -c 'curl -sSL https://rvm.io/mpapis.asc | gpg -q --import -' vagrant + # Install RVM -su -l -c 'curl -L https://get.rvm.io | bash -s stable' vagrant +su -l -c 'curl -sL https://get.rvm.io | bash -s stable' vagrant # Add the vagrant user to the RVM group #usermod -a -G rvm vagrant