fix windows guest with puppet and a facter block
Powershell doesn't understand the unix-style ENV=thing command syntax, the old vagrant-windows plugin monkey patched the provisioner to put semicolons between statements to set the variables before running puppet - this fixes the issue inside a windows? block leaving the normal non-windows code path working - therefore works for me on both unix and windows provisions with a facter block in place
This commit is contained in:
parent
9475ed9a50
commit
573683ef00
|
@ -140,7 +140,7 @@ module VagrantPlugins
|
|||
|
||||
# If we're on Windows, we need to use the PowerShell style
|
||||
if windows?
|
||||
facts.map! { |v| "$env:#{v}" }
|
||||
facts.map! { |v| "$env:#{v};" }
|
||||
end
|
||||
|
||||
facter = "#{facts.join(" ")} "
|
||||
|
|
Loading…
Reference in New Issue