Add chef_zero provisioner support.

This commit is contained in:
Patrick Connolly 2015-06-03 13:45:22 -04:00
parent 3b18f4a5ec
commit dd32f2472e

View file

@ -5,7 +5,7 @@ module VagrantPlugins
module ChefFileCachePath module ChefFileCachePath
def self.chef_provisioner?(machine) def self.chef_provisioner?(machine)
provisioners = machine.config.vm.provisioners provisioners = machine.config.vm.provisioners
chef_provisioners = [:chef_solo, :chef_client] chef_provisioners = [:chef_solo, :chef_client, :chef_zero]
compat_provisioners = provisioners.select { |p| chef_provisioners.include? p.name || p.type } compat_provisioners = provisioners.select { |p| chef_provisioners.include? p.name || p.type }
if compat_provisioners.size > 1 if compat_provisioners.size > 1