diff --git a/lib/vagrant-hostmanager/plugin.rb b/lib/vagrant-hostmanager/plugin.rb index 8369d19..86dab08 100644 --- a/lib/vagrant-hostmanager/plugin.rb +++ b/lib/vagrant-hostmanager/plugin.rb @@ -29,6 +29,12 @@ module VagrantPlugins Provisioner end + # Work-around for vagrant >= 1.5 + # It breaks without a provisioner config, so we provide a dummy one + config(:hostmanager, :provisioner) do + ::Vagrant::Config::V2::DummyConfig.new + end + command(:hostmanager) do require_relative 'command' Command diff --git a/test/Vagrantfile b/test/Vagrantfile index 4c624d1..ecaa38c 100644 --- a/test/Vagrantfile +++ b/test/Vagrantfile @@ -22,4 +22,10 @@ Vagrant.configure('2') do |config| server.vm.hostname = 'bender' server.vm.network :private_network, :ip => '10.0.5.3' end -end + + config.vm.define :server3 do |server| + server.vm.hostname = 'leena' + server.vm.network :private_network, :ip => '10.0.5.4' + server.vm.provision :hostmanager + end +end \ No newline at end of file