Created
January 2, 2013 16:32
-
-
Save anonymous/4435871 to your computer and use it in GitHub Desktop.
Install and configure the salt-minion service with nssm
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
Write-Host "Configuring salt-minion service" | |
c:\salt\nssm.exe install salt-minion c:\salt\salt-minion.exe -c c:\salt\etc\salt -l quiet | |
Set-Service -name "salt-minion" ` | |
-displayName "Salt Minion" ` | |
-StartupType Automatic ` | |
-Description "Provides secure orchestration and centralized management" | |
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\salt-minion ` | |
-Name "DependOnService" ` | |
-PropertyType MultiString ` | |
-force ` | |
-Value "nsi" | Out-Null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment