Last active
March 24, 2016 23:41
-
-
Save PatOShea/bd7d03c1513fe934ecc7 to your computer and use it in GitHub Desktop.
Bootstrap Salt Minion on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: CMD call to install Salt Minion from powershell via URL | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
SET SALT_URL=https://chocolatey.org/install.ps1 | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('%SALT_URL%'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\saltf\bin | |
##################################################################################### | |
# Powershell script to install Salt Minion via URL | |
##################################################################################### | |
# Download minion setup file | |
$version = "2015.5.2" | |
if ([IntPtr]::Size -eq 4) { $arch = "x86" } else { $arch = "AMD64" } | |
Write-Host "Downloading Salt minion installer $version-$arch..." | |
$webclient = New-Object System.Net.WebClient | |
$url = "https://docs.saltstack.com/downloads/Salt-Minion-$version-$arch-Setup.exe" | |
$file = "C:\tmp\Salt-Minion-$version-$arch-Setup.exe" | |
$webclient.DownloadFile($url, $file) | |
# Install minion silently | |
Write-Host "Installing Salt minion..." | |
#Wait for process to exit before continuing... | |
C:\tmp\salt.exe /S | Out-Null | |
##################################################################################### | |
# Chocolatey / Boxstarter call to install via web launcher | |
# More info: http://boxstarter.org/WebLauncher | |
# Minion package source - https://chocolatey.org/packages/saltminion | |
##################################################################################### | |
START http://boxstarter.org/package/nr/saltminion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment