-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for default options in 'vagrant init' #5
Comments
This is good. Instead of doing a YAML version, we'll probably place a Vagrantfile in the home directory and inject that into the loading process. If you take a look at the Vagrant::Config class, you'll see that it was built for this sort of thing :) |
Yep, hence the Ruby section above. The Vagrantfile would need to be a hidden file though. I don't want another file in the Home directory ^_^ |
I meant the vagrant home directory, which defualts to |
This is now doable. Any Vagrantfile in the configured home page (defaults to Default (with gem) => Box => User Defaults (in home dir) => Project specific http://github.com/mitchellh/vagrant/commit/e09dbfa3675d27dbfd176b547005501eddbdb518 |
I propose the support of a ~/.vagrantrc file, which is parsed when running commands.
This file, of whatever format (yaml, ruby or otherwise), would store default options that might show up. Right now, in particular, it would be very handy for specifying the default box made, i,e.
YAML:
default_base_box: debian_lenny
Ruby:
Vagrant::Config.run do |config|
config.vm.default_box = 'debian_lenny'
end
The text was updated successfully, but these errors were encountered: