Land #27, Increase base limits for WinRM connections

This commit is contained in:
Brent Cook 2016-10-31 13:26:38 -05:00
commit 921b74f92f
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
3 changed files with 11 additions and 11 deletions

View File

@ -143,19 +143,19 @@
<RequiresUserInput>true</RequiresUserInput> <RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand> </SynchronousCommand>
<SynchronousCommand wcm:action="add"> <SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c winrm set winrm/config/winrs @{MaxShellsPerUser="50"}</CommandLine> <CommandLine>cmd.exe /c winrm set winrm/config/winrs @{MaxShellsPerUser="999"}</CommandLine>
<Description>Win RM MaxShellsPerUser</Description> <Description>Win RM MaxShellsPerUser</Description>
<Order>7</Order> <Order>7</Order>
<RequiresUserInput>true</RequiresUserInput> <RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand> </SynchronousCommand>
<SynchronousCommand wcm:action="add"> <SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c winrm set winrm/config/winrs @{MaxProcessesPerShell="50"}</CommandLine> <CommandLine>cmd.exe /c winrm set winrm/config/winrs @{MaxProcessesPerShell="999"}</CommandLine>
<Description>Win RM MaxProcessesPerShell</Description> <Description>Win RM MaxProcessesPerShell</Description>
<Order>8</Order> <Order>8</Order>
<RequiresUserInput>true</RequiresUserInput> <RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand> </SynchronousCommand>
<SynchronousCommand wcm:action="add"> <SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c winrm set winrm/config/service @{MaxConcurrentOperationsPerUser="50"}</CommandLine> <CommandLine>cmd.exe /c winrm set winrm/config/service @{MaxConcurrentOperationsPerUser="999"}</CommandLine>
<Description>Win RM ConcurrentOperationsPerUser</Description> <Description>Win RM ConcurrentOperationsPerUser</Description>
<Order>9</Order> <Order>9</Order>
<RequiresUserInput>true</RequiresUserInput> <RequiresUserInput>true</RequiresUserInput>

View File

@ -1,8 +1,8 @@
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
$virtualBoxMinVersion = "5.0.0" $virtualBoxMinVersion = "5.1.0"
$packerMinVersion = "0.10.0" $packerMinVersion = "0.10.0"
$vagrantMinVersion = "1.8.1" $vagrantMinVersion = "1.8.6"
$vagrantreloadMinVersion = "0.0.1" $vagrantreloadMinVersion = "0.0.1"
function CompareVersions ($actualVersion, $expectedVersion, $exactMatch = $False) { function CompareVersions ($actualVersion, $expectedVersion, $exactMatch = $False) {
@ -55,10 +55,10 @@ If ($(Test-Path "C:\HashiCorp\Vagrant\bin\vagrant.exe") -eq $True) {
$vagrantVersion = $vagrantVersion.split(" ")[1] $vagrantVersion = $vagrantVersion.split(" ")[1]
} }
If (CompareVersions -actualVersion $vagrantVersion -expectedVersion $vagrantMinVersion -exactVersion True) { If (CompareVersions -actualVersion $vagrantVersion -expectedVersion $vagrantMinVersion) {
Write-Host "Compatible version of Vagrant found." Write-Host "Compatible version of Vagrant found."
} else { } else {
Write-Host "Could not find a compatible version of Vagrant at C:\HashiCorp\Vagrant\bin\. At this time only $vagrantMinVersion is supported. Please download and install it from https://releases.hashicorp.com/vagrant/1.8.1/." Write-Host "Could not find a compatible version of Vagrant at C:\HashiCorp\Vagrant\bin\. Please download and install it from https://www.vagrantup.com/downloads.html."
exit exit
} }

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
min_virtualbox_ver="5.0.0" min_virtualbox_ver="5.1.0"
min_vagrant_ver="1.8.1" min_vagrant_ver="1.8.6"
min_packer_ver="0.10.0" min_packer_ver="0.10.0"
min_vagrantreload_ver="0.0.1" min_vagrantreload_ver="0.0.1"
@ -48,10 +48,10 @@ else
exit 1 exit 1
fi fi
if compare_versions $(vagrant -v | cut -d' ' -f2) $min_vagrant_ver true; then if compare_versions $(vagrant -v | cut -d' ' -f2) $min_vagrant_ver false; then
echo 'Correct version of vagrant was found.' echo 'Correct version of vagrant was found.'
else else
echo "A compatible version of vagrant was not found. At this time only $min_vagrant_ver is supported. Please install from here: https://releases.hashicorp.com/vagrant/1.8.1/" echo "A compatible version of vagrant was not found. Please download and install it from https://www.virtualbox.org/wiki/Downloads."
exit 1 exit 1
fi fi