c9e4b94d60
I'm probably not the only one that reached for `vim` during the getting started guide. Super minor but might safe some apt-get'ing. ![](https://dl.dropboxusercontent.com/s/mg38fo0k82lxdlv/2015-10-14%20at%205.49%20PM.png)
47 lines
1 KiB
Ruby
47 lines
1 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
$script = <<SCRIPT
|
|
# Update apt and get dependencies
|
|
sudo apt-get update
|
|
sudo apt-get install -y unzip curl wget vim
|
|
|
|
# Download Nomad
|
|
echo Fetching Nomad...
|
|
cd /tmp/
|
|
curl -sSL https://dl.bintray.com/mitchellh/nomad/nomad_0.1.2_linux_amd64.zip -o nomad.zip
|
|
|
|
echo Installing Nomad...
|
|
unzip nomad.zip
|
|
sudo chmod +x nomad
|
|
sudo mv nomad /usr/bin/nomad
|
|
|
|
sudo mkdir /etc/nomad.d
|
|
sudo chmod a+w /etc/nomad.d
|
|
|
|
SCRIPT
|
|
|
|
Vagrant.configure(2) do |config|
|
|
config.vm.box = "puphpet/ubuntu1404-x64"
|
|
config.vm.hostname = "nomad"
|
|
config.vm.provision "shell", inline: $script, privileged: false
|
|
config.vm.provision "docker" # Just install it
|
|
|
|
# Increase memory for Parallels Desktop
|
|
config.vm.provider "parallels" do |p, o|
|
|
p.memory = "1024"
|
|
end
|
|
|
|
# Increase memory for Virtualbox
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.memory = "1024"
|
|
end
|
|
|
|
# Increase memory for VMware
|
|
["vmware_fusion", "vmware_workstation"].each do |p|
|
|
config.vm.provider p do |v|
|
|
v.vmx["memsize"] = "1024"
|
|
end
|
|
end
|
|
end
|