github.com/mattyr/nomad@v0.3.3-0.20160919021406-3485a065154a/demo/vagrant/Vagrantfile (about) 1 # -*- mode: ruby -*- 2 # vi: set ft=ruby : 3 4 $script = <<SCRIPT 5 # Update apt and get dependencies 6 sudo apt-get update 7 sudo apt-get install -y unzip curl wget vim 8 9 # Download Nomad 10 echo Fetching Nomad... 11 cd /tmp/ 12 curl -sSL https://releases.hashicorp.com/nomad/0.4.1/nomad_0.4.1_linux_amd64.zip -o nomad.zip 13 14 echo Installing Nomad... 15 unzip nomad.zip 16 sudo chmod +x nomad 17 sudo mv nomad /usr/bin/nomad 18 19 sudo mkdir -p /etc/nomad.d 20 sudo chmod a+w /etc/nomad.d 21 22 SCRIPT 23 24 Vagrant.configure(2) do |config| 25 config.vm.box = "puphpet/ubuntu1404-x64" 26 config.vm.hostname = "nomad" 27 config.vm.provision "shell", inline: $script, privileged: false 28 config.vm.provision "docker" # Just install it 29 30 # Increase memory for Parallels Desktop 31 config.vm.provider "parallels" do |p, o| 32 p.memory = "1024" 33 end 34 35 # Increase memory for Virtualbox 36 config.vm.provider "virtualbox" do |vb| 37 vb.memory = "1024" 38 end 39 40 # Increase memory for VMware 41 ["vmware_fusion", "vmware_workstation"].each do |p| 42 config.vm.provider p do |v| 43 v.vmx["memsize"] = "1024" 44 end 45 end 46 end