Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Closes chocolatey-community#19
Closes chocolatey-community#20
Closes chocolatey-community#21
Closes chocolatey-community#22

See hashicorp/vagrant#9138 for an issues regarding
Windows Server 2016 and powershell provisioners.

See https://github.com/StefanScherer/packer-windows for packer templates
  • Loading branch information
basictheprogram committed Nov 9, 2017
1 parent 8da4e45 commit e210db3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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 = <<SCRIPT
Expand Down Expand Up @@ -143,6 +142,6 @@ SCRIPT
if Vagrant::VERSION < '1.8.0'
config.vm.provision :shell, :inline => $packageTestScript
else
config.vm.provision :shell, :inline => $packageTestScript, :powershell_elevated_interactive => true
config.vm.provision :shell, :inline => $packageTestScript, privileged: false
end
end

0 comments on commit e210db3

Please sign in to comment.