From e210db3d5413b0a4da95084f3b47a33b474872a4 Mon Sep 17 00:00:00 2001 From: Bob Tanner Date: Wed, 8 Nov 2017 18:17:13 -0600 Subject: [PATCH] Closes https://github.com/chocolatey/chocolatey-test-environment/issues/18 Closes https://github.com/chocolatey/chocolatey-test-environment/issues/19 Closes https://github.com/chocolatey/chocolatey-test-environment/issues/20 Closes https://github.com/chocolatey/chocolatey-test-environment/issues/21 Closes https://github.com/chocolatey/chocolatey-test-environment/issues/22 See https://github.com/hashicorp/vagrant/issues/9138 for an issues regarding Windows Server 2016 and powershell provisioners. See https://github.com/StefanScherer/packer-windows for packer templates --- Vagrantfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index ee1c2e3..19226f7 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -84,7 +84,6 @@ Vagrant.configure("2") do |config| # naming of this directory being `vagrant` is just a coincedence). # Share `packages` directory as `C:\packages` config.vm.synced_folder "packages", "/packages" - config.vm.synced_folder "/Users/tanner/projects/", "/projects" #config.vm.synced_folder "temp", "/Users/vagrant/AppData/Local/Temp/chocolatey" # not recommended for sharing, it may have issues with `vagrant sandbox rollback` @@ -109,11 +108,11 @@ Vagrant.configure("2") do |config| config.vm.provision :shell, :path => "shell/InstallChocolatey.ps1" config.vm.provision :shell, :path => "shell/NotifyGuiAppsOfEnvironmentChanges.ps1" else - config.vm.provision :shell, :path => "shell/PrepareWindows.ps1", :powershell_elevated_interactive => true - config.vm.provision :shell, :path => "shell/InstallNet4.ps1", :powershell_elevated_interactive => true - config.vm.provision :shell, :path => "shell/InstallChocolatey.ps1", :powershell_elevated_interactive => true - config.vm.provision :shell, :path => "shell/NotifyGuiAppsOfEnvironmentChanges.ps1", :powershell_elevated_interactive => true - config.vm.provision :shell, :path => "shell/InstallToolchain.ps1", :powershell_elevated_interactive => true + config.vm.provision :shell, :path => "shell/PrepareWindows.ps1", privileged: false + config.vm.provision :shell, :path => "shell/InstallNet4.ps1", privileged: false + config.vm.provision :shell, :path => "shell/InstallChocolatey.ps1", privileged: false + config.vm.provision :shell, :path => "shell/NotifyGuiAppsOfEnvironmentChanges.ps1",privileged: false + config.vm.provision :shell, :path => "shell/InstallToolchain.ps1", privileged: false end $packageTestScript = <