Skip to content

Commit

Permalink
Older versions of Windows Powershell do not support TLS too well, so …
Browse files Browse the repository at this point in the history
…script/cmtool.bat now fetches using non-ssl when falling back to the saltrepository method.
  • Loading branch information
arizvisa committed Jan 9, 2020
1 parent bb4aedd commit 14259e4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions script/cmtool.bat
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ goto exit0
:salt
::::::::::::
if not defined SALT_OPTIONS set SALT_OPTIONS=%CM_OPTIONS%

if "%CM_VERSION%" == "latest" set CM_VERSION=2019.2.2
if not defined SALT_REVISION set SALT_REVISION=stable

set SALT_DIR=%TEMP%\salt
Expand All @@ -192,6 +190,9 @@ if "%PlatformVersionMajor%" == "6" goto saltrepository
:saltbootstrap
::::::::::::

:: We hardcode the CM_VERSION here to workaround saltstack/salt-bootstrap#1394
if "%CM_VERSION%" == "latest" set CM_VERSION=2019.2.2

set SALT_URL=http://raw.githubusercontent.com/saltstack/salt-bootstrap/%SALT_REVISION%/bootstrap-salt.ps1

set SALT_PATH=%SALT_DIR%\bootstrap-salt.ps1
Expand Down Expand Up @@ -231,9 +232,9 @@ if not defined SALT_ARCH (
)

if "%CM_VERSION%" == "latest" (
set SALT_URL=https://repo.saltstack.com/windows/Salt-Minion-Latest-%SALT_PYTHONVERSION%-%SALT_ARCH%-Setup.exe
set SALT_URL=http://repo.saltstack.com/windows/Salt-Minion-Latest-%SALT_PYTHONVERSION%-%SALT_ARCH%-Setup.exe
) else (
set SALT_URL=https://repo.saltstack.com/windows/Salt-Minion-%CM_VERSION%-%SALT_PYTHONVERSION%-%SALT_ARCH%-Setup.exe
set SALT_URL=http://repo.saltstack.com/windows/Salt-Minion-%CM_VERSION%-%SALT_PYTHONVERSION%-%SALT_ARCH%-Setup.exe
)

set SALT_PATH=%SALT_DIR%\Salt-Minion-Setup.exe
Expand Down

0 comments on commit 14259e4

Please sign in to comment.