2015-06-02 96 views
0

聽起來很簡單 - 我試圖只爲Virtualbox切換vagrant hostmanager插件。流浪漢供應商特定的主機管理員設置

所以我試圖重寫:

config.hostmanager.enabled = false 

... 

config.vm.provider "virtualbox" do |vb| 
    vb.hostmanager.enabled = true 
    ... 
end 
config.vm.provider "azure" do |azure| 
    # do nothing 
    ... 
end 

然而,流浪者抱怨吧:

There are errors in the configuration of this machine. Please fix the following errors and try again: 

VirtualBox Provider: 
* The following settings shouldn't exist: hostmanager 

編輯:我也想......

config.vm.provider "virtualbox" do |vb,override| 
    override.hostmanager.enabled = true 
    ... 
end 

這不拋出一個錯誤,但它也不會運行hostmanager :(

我在做什麼錯?

回答

0

我有同樣的錯誤,當我配置類似

config.vm.hostmanager.aliases = %w(my.example.local) 

但正確的是

config.hostmanager.aliases = %w(my.example.local) 

也許你也有類似的錯字?