Created
May 14, 2014 20:16
-
-
Save elnur/1b7127d53c0f88541b49 to your computer and use it in GitHub Desktop.
Vagrantfile with Customizable Configuration http://elnur.pro/vagrantfile-with-customizable-configuration/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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