fix provisioner issue in vagrant 1.5

relates to #80
This commit is contained in:
Paulo Bittencourt 2014-03-17 21:11:02 -04:00
parent 3350c07bdc
commit 552a791ef4
2 changed files with 13 additions and 1 deletions

View File

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

8
test/Vagrantfile vendored
View File

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