mirror of https://github.com/hashicorp/consul
parent
15472439a3
commit
8797345f53
@ -0,0 +1,24 @@
|
|||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
||||||
|
VAGRANTFILE_API_VERSION = "2"
|
||||||
|
|
||||||
|
$script = <<SCRIPT
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y install curl
|
||||||
|
curl -sSL https://get.rvm.io | bash -s stable
|
||||||
|
. ~/.bashrc
|
||||||
|
. ~/.bash_profile
|
||||||
|
rvm install 2.0.0
|
||||||
|
rvm --default use 2.0.0
|
||||||
|
cd /vagrant
|
||||||
|
bundle
|
||||||
|
SCRIPT
|
||||||
|
|
||||||
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
|
config.vm.box = "hashicorp/precise64"
|
||||||
|
config.vm.network "private_network", ip: "33.33.33.10"
|
||||||
|
config.vm.provision "shell", inline: $script, privileged: false
|
||||||
|
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
||||||
|
end
|
Loading…
Reference in new issue