Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Install salt minion for Windows

# Windows: Using Windows PowerShell or PowerShell Core
# Download
Invoke-WebRequest -Uri https://winbootstrap.saltproject.io -OutFile C:Tempootstrap-salt.ps1
Invoke-WebRequest -Uri https://winbootstrap.saltproject.io/sha256 -OutFile C:Tempootstrap-salt-sha256

# Verify file integrity
$FileSha = (Get-FileHash C:Tempootstrap-salt.ps1).hash
$ValidatedSha = Get-Content C:Tempootstrap-salt-sha256
if ("$FileSha" -eq "$ValidatedSha") {
    # After verification, run Windows minion install
    Write-Output "Success! Installing..."
    Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
    C:Tempootstrap-salt.ps1
    Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser
} else {
    # If hash check fails, don't attempt install
    Write-Error "WARNING: This file is corrupt or has been tampered with."
}
Comment

PREVIOUS NEXT
Code Example
Shell :: linux logrotate output of command 
Shell :: heroku rename remote app 
Shell :: how to clear linux terminal 
Shell :: ring execute system commands 
Shell :: get character frequency in linux 
Shell :: combine files with header bash 
Shell :: docker pull 
Shell :: sed beginning of file 
Shell :: mv selected directory 
Shell :: Docker dial unix 
Shell :: spa in github not working 
Shell :: adb install --abi armeabi-v7a aab 
Shell :: how to upgrade a kubeone cluster 
Shell :: how to usepyinstaller 
Shell :: zsh: permiso denegado: /home/sebastian/.bash_aliases 
Shell :: unorm npm 
Shell :: open broadcaster software ubuntu 
Shell :: boot flash commande 
Shell :: when-i-start-ubuntu-it-enters-tty1-6-instead-of-my-desktop-how-do-i-get-to-de/65234#65234 
Shell :: github token windows 
Shell :: watch bash second 
Shell :: proxmox pass raw disk 
Shell :: login as root debian 
Shell :: docker entrypoint how not finish container 
Shell :: ifconfig wlan0 hw ether not working 
Shell :: pip install fork branch 
Shell :: github.com developer 
Shell :: admin passwort eingeben wenn powershell script ausgeführt wird 
Shell :: how to leave an organisation github 
Shell :: criar variáveis no mac 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =