packer-cn/website/Vagrantfile
Clint Shryock 729a0c01c7 Updates to Into: Build An Image docs
- the listed AMI isn't found
- t2.micros can only be in a VPC(? so said an error), and the docs say
  we're using a t1.micro anyway
- Updates to the vagrant file to get the website to build
2015-01-24 17:25:47 -06:00

28 lines
629 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-get -y update
# RVM/Ruby
sudo apt-get -y install curl
sudo apt-get -y install git
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
. ~/.bashrc
. ~/.bash_profile
rvm install 2.0.0
rvm --default use 2.0.0
# Middleman deps
cd /vagrant
bundle
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "chef/ubuntu-12.04"
config.vm.network "private_network", ip: "33.33.30.10"
config.vm.provision "shell", inline: $script, privileged: false
config.vm.synced_folder ".", "/vagrant", type: "rsync"
end