Skip to content

Instantly share code, notes, and snippets.

@mark-cooper
Created September 9, 2015 05:44
Show Gist options
  • Save mark-cooper/9c017f7d2e5f3b66d9c7 to your computer and use it in GitHub Desktop.
Save mark-cooper/9c017f7d2e5f3b66d9c7 to your computer and use it in GitHub Desktop.
Local no-thrills, no-assumptions vagrant box for dev
# -*- mode: ruby -*-
# vi: set ft=ruby :
$cpu = ENV.fetch('DEV_CPU', 4)
$ram = ENV.fetch('DEV_RAM', 4096)
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = true
config.vm.hostname = "dev"
config.vm.network "private_network", ip: "10.10.10.10"
config.ssh.insert_key = false
config.vm.provider "virtualbox" do |vb|
vb.cpus = $cpu
vb.memory = $ram
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment