Hi vagrant.  I've recently externalized my vagrant provisioning function, 
like this:

Vagrant.configure("2") do |config|  
        (0..NUMM).each do |i|
                setup_vm(i, config)
        end
end

However, I get errors that "vm * a box must be specified " and "AWS * 
vagrant_aws.config.ami_required".  
Thus, it seems that the Vagrant DSL is interpretting the fact that, my
vm object is not being configured.

the setup_vm function, however, very clearly assigns: 

config.vm.define "aws#{i}" do |n|  
     n.vm.box = "fedora_aws" 

And so on. 

So My question is : Is it possible to externalize the calls which happen 
under Vagrant.configure("2") do |config| ? Or does is there some kind of magic
variable scoping dependency which precludes such externalization.  

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to