Im trying to figure out the proper way to override specific networks in 
providers but cant seem to find any examples. For example, if I setup an 
instance and set default networks, how can I then use override to set 
change the previous config (ie how would it know which one to override vs 
thinking im trying to add a third iface?):

Vagrant.configure(2) do |config|
  config.vm.define "ci-cookbook-test" do |instance|
       instance.vm.network :private_network, type: "static", ip: 
"192.168.10.5", auto_config: true, virtualbox__intnet: "internalnetname"
       instance.vm.network :public_network, type: "dhcp",  auto_config: 
true, virtualbox__intnet: false, bridge: "wlan0"

       instance.vm.provider :virtualbox do |vb, config_override|
             #Is this overriding or adding a third? If I had more than one 
public network defined above, how would it know which to override if it is 
considered an override?
             config_override.vm.network :public_network, type: "dhcp", 
auto_config: true, virtualbox__intnet: false, bridge: "eth0"
       end
  end 
end

Thanks,

-- 
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