github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/Vagrantfile (about)

     1  # -*- mode: ruby -*-
     2  # vi: set ft=ruby :
     3  
     4  # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
     5  VAGRANTFILE_API_VERSION = "2"
     6  
     7  $script = <<SCRIPT
     8  sudo apt-get -y update
     9  
    10  # RVM/Ruby
    11  sudo apt-get -y install curl
    12  curl -sSL https://get.rvm.io | bash -s stable
    13  . ~/.bashrc
    14  . ~/.bash_profile
    15  rvm install 2.0.0
    16  rvm --default use 2.0.0
    17  
    18  # Middleman deps
    19  cd /vagrant
    20  bundle
    21  
    22  # JS stuff
    23  sudo apt-get install -y python-software-properties
    24  sudo add-apt-repository -y ppa:chris-lea/node.js
    25  sudo apt-get update -y
    26  sudo apt-get install -y nodejs
    27  
    28  # Get JS deps
    29  cd /vagrant/source
    30  npm install
    31  SCRIPT
    32  
    33  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    34    config.vm.box = "chef/ubuntu-12.04"
    35    config.vm.network "private_network", ip: "33.33.30.10"
    36    config.vm.provision "shell", inline: $script, privileged: false
    37    config.vm.synced_folder ".", "/vagrant", type: "rsync"
    38  end