github.com/daniellockard/packer@v0.7.6-0.20141210173435-5a9390934716/website/Vagrantfile (about) 1 # -*- mode: ruby -*- 2 # vi: set ft=ruby : 3 4 $script = <<SCRIPT 5 sudo apt-get -y update 6 7 # RVM/Ruby 8 sudo apt-get -y install curl 9 curl -sSL https://get.rvm.io | bash -s stable 10 . ~/.bashrc 11 . ~/.bash_profile 12 rvm install 2.0.0 13 rvm --default use 2.0.0 14 15 # Middleman deps 16 cd /vagrant 17 bundle 18 SCRIPT 19 20 Vagrant.configure(2) do |config| 21 config.vm.box = "chef/ubuntu-12.04" 22 config.vm.network "private_network", ip: "33.33.30.10" 23 config.vm.provision "shell", inline: $script, privileged: false 24 config.vm.synced_folder ".", "/vagrant", type: "rsync" 25 end