Skip to content

Enabling auto network globally #32

@raags

Description

@raags

I tried to add the following to global vagrant file ~/.vagrant.d/Vagrantfile hoping this enables autonetwork for all nodes :

if Vagrant.has_plugin?("vagrant-auto_network")
  config.vm.network :private_network, :auto_network => true
end

This is my vagrant file :

Vagrant.configure(2) do |config|
  config.vm.define "test" do |node|
    node.vm.hostname = "test1"
  end

  config.vm.define "test1" do |node|
    node.vm.hostname = "test2"
  end
end

But both end up with the same ip address.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions