
28,300
Downloads
13
Downloads of v 2017.7.8.1
12/20/2018
Last update
This package installs a salt minion on your system as a windows service. The Salt minion receives commands from the central Salt master and replies with the results of said commands. It can also be used in standalone mode to apply states to a machine without a master by using C:\salt\salt-call.bat --local state.sls [yoursls]
or similar commands with --local
.
Note that this package supports two arguments: /master=yoursaltmaster and /minion=yourminionname (note the installer itself uses /minion-name, but parsing dictionary keys with the -
is painful).
These arguments can be passed to the package via the --params '/master=yoursaltmaster'. The custom salt master is recommended in most environments, the minion name is optional will default to the hostname if not supplied.
To install Salt Minion, run the following command from the command line or from PowerShell:
C:\> choco install saltminion
--version 2017.7.8.1
To upgrade Salt Minion, run the following command from the command line or from PowerShell:
C:\> choco upgrade saltminion
--version 2017.7.8.1
Files
Hide- tools\chocolateyBeforeModify.ps1
Show
# Need to keep a copy of the C:\salt\conf\minion and minion.d files in case the user is upgrading and wants to persist their existing settings. $chocoBackup = '$env:ProgramData\chocolatey\lib-bkp\saltconfig' $saltConfig = 'C:\salt\conf\' # Items to keep around, 'pki' is "identity", 'minion[_id]' is settings and ID, 'minion.d' is additional settings #if (Test-Path $saltConfig ) { copy-item $saltConfig $chocoBackup -recurse } # In chocolateyInstall.ps1 will need to look for a previous backup and restore files either before install or after upgrade (only IF the master & minion ID match?) # if (Test-Path $chocoBackup) { copy-item $chocoBackup $saltConfig -recurse } # Maybe do the backup via another package that simply assumes C:\salt\conf and performs the backup? but reverse-depends don't work here # In chocolateyUninstall.ps1 will need to remove $chocoBackup if it exists but only if doing a real uninstall and not an upgrade
- tools\chocolateyInstall.ps1
Show
$packageName = 'saltminion' # Update these URLs and checksums when deploying a new version $url64 = 'https://repo.saltstack.com/windows/Salt-Minion-2017.7.8-Py2-AMD64-Setup.exe' $checksum64 = '8AA97E65B433D5100BC6153AD60CECEC' $url = 'https://repo.saltstack.com/windows/Salt-Minion-2017.7.8-Py2-x86-Setup.exe' $checksum = '040CC491914D6B3639926BC8576E04A6' # Get arguments to download the file from the URLs and checksums above $packageArgs = @{ packageName = $packageName fileType = 'exe' url = $url url64bit = $url64 silentArgs = "/S" softwareName = 'Salt*' checksum = $checksum checksumType = 'md5' checksum64 = $checksum64 checksumType64= 'md5' } $arguments = @{}; # /master=myMaster /minion=myMinion $packageParameters = $env:chocolateyPackageParameters; $packageParameters # Default the values $saltMaster = '' $minionName = '' # Now parse the packageParameters using good old regular expression if ($packageParameters) { $match_pattern = "\/(?<option>([a-zA-Z]+))=(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))" #" $option_name = 'option' $value_name = 'value' if ($packageParameters -match $match_pattern ){ $results = $packageParameters | Select-String $match_pattern -AllMatches $results.matches | % { $arguments.Add( $_.Groups[$option_name].Value.Trim(), $_.Groups[$value_name].Value.Trim()) } } else { throw "Package Parameters were found but were invalid (REGEX Failure)" } if ($arguments.ContainsKey("master")) { Write-Host "You specified a custom master address" $saltMaster = $arguments['master'] $packageArgs['silentArgs'] += " /master=$saltMaster" } if ($arguments.ContainsKey("minion")) { Write-Host "You specified a custom minion ID" $minionName = $arguments['minion'] $packageArgs['silentArgs'] += " /minion-name=$minionName" } } else { Write-Debug "No Package Parameters Passed in, using defaults of /master=salt and /minion=$env:COMPUTERNAME" } install-ChocolateyPackage @packageArgs
- tools\chocolateyUninstall.ps1
Show
# By default, salt installs in c:\salt This package will attempt to call the uninstall executable from there. C:\salt\uninst.exe /S
Virus Scan Results
- Salt-Minion-2017.7.8-Py2-AMD64-Setup.exe (25ef1976cee4) - ## / 67 - Log in or click on link to see number of positives
- Salt-Minion-2017.7.8-Py2-x86-Setup.exe (11ead191fc37) - ## / 69 - Log in or click on link to see number of positives
- saltminion.2017.7.8.1.nupkg (d8e0fb4a3ff9) - ## / 60 - Log in or click on link to see number of positives
Dependencies
-
- vcredist2008 (≥ 9.0)
Package Maintainer(s)
Software Author(s)
Tags
Release Notes
- Updated to latest version
- Use Python 3
- Rebuilt 2018-11-12 with updated checksums
Version History
Version | Downloads | Last updated | Status |
---|---|---|---|
Salt Minion 2018.3.3.3 | 802 | Thursday, January 17, 2019 | approved |
Salt Minion 2018.3.3.2 | 229 | Wednesday, January 16, 2019 | approved |
Salt Minion 2018.3.3.1 | 1152 | Monday, November 12, 2018 | approved |
Salt Minion 2018.3.3 | 1563 | Wednesday, October 24, 2018 | approved |
Salt Minion 2018.3.2 | 2513 | Wednesday, June 27, 2018 | approved |
Salt Minion 2018.3.1 | 531 | Wednesday, June 13, 2018 | approved |
Salt Minion 2018.3.0.1 | 1119 | Monday, May 21, 2018 | approved |
Salt Minion 2018.3.0 | 2341 | Tuesday, April 3, 2018 | approved |
Salt Minion 2017.7.8.1 | 13 | Thursday, December 20, 2018 | approved |
Salt Minion 2017.7.8 | 40 | Wednesday, October 24, 2018 | approved |
Discussion for the Salt Minion Package
Ground rules:
- This discussion is only about Salt Minion and the Salt Minion package. If you have feedback for Chocolatey, please contact the google group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or Salt Minion, or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.