Skip to content

Instantly share code, notes, and snippets.

@elnur
Created May 14, 2014 20:16
Show Gist options
  • Select an option

  • Save elnur/1b7127d53c0f88541b49 to your computer and use it in GitHub Desktop.

Select an option

Save elnur/1b7127d53c0f88541b49 to your computer and use it in GitHub Desktop.
Vagrantfile with Customizable Configuration http://elnur.pro/vagrantfile-with-customizable-configuration/
require "yaml"
params = YAML::load_file("./Vagrantparams.yml")
Vagrant.configure("2") do |config|
config.vm.network "private_network", :ip => params['ip']
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", params['memory']]
vb.customize ["modifyvm", :id, "--cpus", params['cpus']]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment