diff --git a/README.rst b/README.rst index 616c9ae..67e6a72 100644 --- a/README.rst +++ b/README.rst @@ -227,6 +227,27 @@ Installing the latest master branch of Salt: curl -L https://bootstrap.saltstack.com | sudo sh -s -- git master +Install on Windows +~~~~~~~~~~~~~~~~~~ + +Using ``PowerShell`` to install latest stable version: + +.. code:: console + + Invoke-WebRequest -Uri https://winbootstrap.saltstack.com -OutFile C:\Temp\bootstrap-salt.ps1 + Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser + C:\Temp\bootstrap-salt.ps1 + Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser + + +Using ``cygwin`` to install latest stable version: + +.. code:: console + + curl -o bootstrap-salt.ps1 -L https://winbootstrap.saltstack.com + "/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ./bootstrap-salt.ps1" + + Supported Operating Systems --------------------------- diff --git a/bootstrap-salt.ps1 b/bootstrap-salt.ps1 index 3c311ec..ffd3912 100644 --- a/bootstrap-salt.ps1 +++ b/bootstrap-salt.ps1 @@ -85,7 +85,7 @@ Param( [Parameter(Mandatory=$false,ValueFromPipeline=$true)] # Doesn't support Python versions prior to "2017.7.0" [ValidateSet("2","3")] - [string]$pythonVersion = "2", + [string]$pythonVersion = "3", [Parameter(Mandatory=$false,ValueFromPipeline=$true)] [ValidateSet("true","false")]