Vagrant::configure("2") do |config|config.vm.define 'local' do |cfg|cfg.vm.provider :virtualbox do |vbox, override|override.vm.box = "bento/ubuntu-12.04"end...endconfig.vm.define 'ci' do |cfg|cfg.vm.provider :docker do |docker, override|override.vm.box = "tknerr/baseimage-ubuntu-12.04"end...endconfig.vm.define 'prod' do |cfg|cfg.vm.provider :aws do |docker, override|override.vm.box = "dimroc/awsdummy"end...endend
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/8af246ce-717b-4626-989c-5d35cfe6a6ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
As for the ARGV[2] parsing: the docker provider is a bit of a special case as it is usually not configured with a basebox, but you still can provide working docker baseboxes:(no fedora docker boxes in there yet, but pull requests welcome ;-))
[...]
That being said, if it really comes to representing different environments (like local/ci/staging/prod) I personally choose to have a subdirectories with it's own Vagrantfile each, especially if it's a multi-vm Vagrantfile describing a whole stack rather than a single vm
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/373e0f3c-f917-4c9f-bc43-5e676935215b%40googlegroups.com.