Land #27, Increase base limits for WinRM connections
This commit is contained in:
commit
921b74f92f
|
@ -143,19 +143,19 @@
|
|||
<RequiresUserInput>true</RequiresUserInput>
|
||||
</SynchronousCommand>
|
||||
<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>
|
||||
<Order>7</Order>
|
||||
<RequiresUserInput>true</RequiresUserInput>
|
||||
</SynchronousCommand>
|
||||
<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>
|
||||
<Order>8</Order>
|
||||
<RequiresUserInput>true</RequiresUserInput>
|
||||
</SynchronousCommand>
|
||||
<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>
|
||||
<Order>9</Order>
|
||||
<RequiresUserInput>true</RequiresUserInput>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$virtualBoxMinVersion = "5.0.0"
|
||||
$virtualBoxMinVersion = "5.1.0"
|
||||
$packerMinVersion = "0.10.0"
|
||||
$vagrantMinVersion = "1.8.1"
|
||||
$vagrantMinVersion = "1.8.6"
|
||||
$vagrantreloadMinVersion = "0.0.1"
|
||||
|
||||
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]
|
||||
}
|
||||
|
||||
If (CompareVersions -actualVersion $vagrantVersion -expectedVersion $vagrantMinVersion -exactVersion True) {
|
||||
If (CompareVersions -actualVersion $vagrantVersion -expectedVersion $vagrantMinVersion) {
|
||||
Write-Host "Compatible version of Vagrant found."
|
||||
} 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
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
min_virtualbox_ver="5.0.0"
|
||||
min_vagrant_ver="1.8.1"
|
||||
min_virtualbox_ver="5.1.0"
|
||||
min_vagrant_ver="1.8.6"
|
||||
min_packer_ver="0.10.0"
|
||||
min_vagrantreload_ver="0.0.1"
|
||||
|
||||
|
@ -48,10 +48,10 @@ else
|
|||
exit 1
|
||||
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.'
|
||||
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
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue