Adjust the vagrant version requirement now that the WinRM connections have been increased.

This commit is contained in:
James Barnett 2016-10-31 12:29:50 -05:00
parent e60dcd7fb9
commit fd18fcce89
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
2 changed files with 8 additions and 8 deletions

View File

@ -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
}

View File

@ -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