Download and install the 3000 release of Salt.
Latest release: 3000.9 (March 23, 2021)
These instructions are for an older release of Salt. You might want to view instructions for the latest release instead.
NATIVE MINIONS
Looking to run Salt on AIX, Solaris, Arista, or Juniper devices? Reference the Native minion documentation for more information.
PYTHON 2.7 DEPRECATED
In light of Python 2.7 reaching its End of Life (EOL) on Jan 1st 2020, Python 2 has been deprecated and is no longer supported starting with the 3001 release.
For Salt 3000, only the following OS targets have Python 2 packages available:
Installs the latest release. Updating installs the latest minor release but not a new major version.
Read Before Upgrading Debian 8 (Jessie) from Salt Versions Earlier than 2015.8.4
Salt systemd service files are missing the following statement in these versions:
[Service]
KillMode=processThis statement must be added to successfully upgrade on these earlier versions of Salt.
/etc/apt/sources.list.d/salt.list:
# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/10/amd64/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/debian/10/amd64/3000 buster main" | sudo tee /etc/apt/sources.list.d/salt.list# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/apt/debian/9/amd64/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/apt/debian/9/amd64/3000 stretch main" | sudo tee /etc/apt/sources.list.d/salt.listDebian 9 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Debian 10 and later.
sudo apt-get update
sudo apt-get install apt-transport-https# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/9/amd64/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/debian/9/amd64/3000 stretch main" | sudo tee /etc/apt/sources.list.d/salt.listDebian 9 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Debian 10 and later.
sudo apt-get update
sudo apt-get install apt-transport-httpsRun sudo apt-get update
sudo apt-get install salt-mastersudo apt-get install salt-minionsudo apt-get install salt-sshsudo apt-get install salt-syndicsudo apt-get install salt-cloudsudo apt-get install salt-apiFor more information on next steps, reference Post-installation configuration
Installs a specific release. Updating doesn’t change the release that is installed.
Read Before Upgrading Debian 8 (Jessie) from Salt Versions Earlier than 2015.8.4
Salt systemd service files are missing the following statement in these versions:
[Service]
KillMode=processThis statement must be added to successfully upgrade on these earlier versions of Salt.
/etc/apt/sources.list.d/salt.list:
# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/10/amd64/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/debian/10/amd64/archive/3000.9 buster main" | sudo tee /etc/apt/sources.list.d/salt.list# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/apt/debian/9/amd64/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/apt/debian/9/amd64/archive/3000.9 stretch main" | sudo tee /etc/apt/sources.list.d/salt.listDebian 9 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Debian 10 and later.
sudo apt-get update
sudo apt-get install apt-transport-https# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/9/amd64/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/debian/9/amd64/archive/3000.9 stretch main" | sudo tee /etc/apt/sources.list.d/salt.listDebian 9 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Debian 10 and later.
sudo apt-get update
sudo apt-get install apt-transport-httpsRun sudo apt-get update
sudo apt-get install salt-mastersudo apt-get install salt-minionsudo apt-get install salt-sshsudo apt-get install salt-syndicsudo apt-get install salt-cloudsudo apt-get install salt-apiFor more information on next steps, reference Post-installation configuration
Installs the latest release. Updating installs the latest minor release but not a new major version.
sudo rpm --import https://repo.saltproject.io/py3/redhat/8/x86_64/3000/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/py3/redhat/8/x86_64/3000.repo | sudo tee /etc/yum.repos.d/salt.reposudo rpm --import https://repo.saltproject.io/yum/redhat/7/x86_64/3000/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/yum/redhat/7/x86_64/3000.repo | sudo tee /etc/yum.repos.d/salt.reposudo rpm --import https://repo.saltproject.io/py3/redhat/7/x86_64/3000/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/py3/redhat/7/x86_64/3000.repo | sudo tee /etc/yum.repos.d/salt.repoRun sudo yum clean expire-cache
sudo yum install salt-mastersudo yum install salt-minionsudo yum install salt-sshsudo yum install salt-syndicsudo yum install salt-cloudsudo yum install salt-apisudo systemctl enable salt-master && sudo systemctl start salt-mastersudo systemctl enable salt-minion && sudo systemctl start salt-minionsudo systemctl enable salt-syndic && sudo systemctl start salt-syndicsudo systemctl enable salt-api && sudo systemctl start salt-apiFor more information on next steps, reference Post-installation configuration
Installs a specific release. Updating doesn’t change the release that is installed.
Run the following commands to install the SaltStack repository and key:
sudo rpm --import https://repo.saltproject.io/py3/redhat/8/x86_64/archive/3000.9/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/py3/redhat/8/x86_64/archive/3000.9.repo | sudo tee /etc/yum.repos.d/salt.reposudo rpm --import https://repo.saltproject.io/yum/redhat/7/x86_64/archive/3000.9/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/yum/redhat/7/x86_64/archive/3000.9.repo | sudo tee /etc/yum.repos.d/salt.reposudo rpm --import https://repo.saltproject.io/py3/redhat/7/x86_64/archive/3000.9/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/py3/redhat/7/x86_64/archive/3000.9.repo | sudo tee /etc/yum.repos.d/salt.repoRun sudo yum clean expire-cache
sudo yum install salt-mastersudo yum install salt-minionsudo yum install salt-sshsudo yum install salt-syndicsudo yum install salt-cloudsudo yum install salt-apisudo systemctl enable salt-master && sudo systemctl start salt-mastersudo systemctl enable salt-minion && sudo systemctl start salt-minionsudo systemctl enable salt-syndic && sudo systemctl start salt-syndicsudo systemctl enable salt-api && sudo systemctl start salt-apiFor more information on next steps, reference Post-installation configuration
Installs the latest release. Updating installs the latest minor release but not a new major version.
/etc/apt/sources.list.d/salt.list:
# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/apt/ubuntu/18.04/amd64/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/apt/ubuntu/18.04/amd64/3000 bionic main" | sudo tee /etc/apt/sources.list.d/salt.list# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/apt/ubuntu/16.04/amd64/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/apt/ubuntu/16.04/amd64/3000 xenial main" | sudo tee /etc/apt/sources.list.d/salt.listUbuntu 16.04 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Ubuntu 18.04 and later.
sudo apt-get update
sudo apt-get install apt-transport-https# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/18.04/amd64/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/18.04/amd64/3000 bionic main" | sudo tee /etc/apt/sources.list.d/salt.list# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/16.04/amd64/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/16.04/amd64/3000 xenial main" | sudo tee /etc/apt/sources.list.d/salt.listUbuntu 16.04 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Ubuntu 18.04 and later.
sudo apt-get update
sudo apt-get install apt-transport-httpsRun sudo apt-get update
sudo apt-get install salt-mastersudo apt-get install salt-minionsudo apt-get install salt-sshsudo apt-get install salt-syndicsudo apt-get install salt-cloudsudo apt-get install salt-apiFor more information on next steps, reference Post-installation configuration
Installs a specific release. Updating doesn’t change the release that is installed.
/etc/apt/sources.list.d/salt.list:
# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/apt/ubuntu/18.04/amd64/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/apt/ubuntu/18.04/amd64/archive/3000.9 bionic main" | sudo tee /etc/apt/sources.list.d/salt.list# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/apt/ubuntu/16.04/amd64/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/apt/ubuntu/16.04/amd64/archive/3000.9 xenial main" | sudo tee /etc/apt/sources.list.d/salt.listUbuntu 16.04 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Ubuntu 18.04 and later.
sudo apt-get update
sudo apt-get install apt-transport-https# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/18.04/amd64/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/18.04/amd64/archive/3000.9 bionic main" | sudo tee /etc/apt/sources.list.d/salt.list# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/16.04/amd64/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/16.04/amd64/archive/3000.9 xenial main" | sudo tee /etc/apt/sources.list.d/salt.listUbuntu 16.04 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Ubuntu 18.04 and later.
sudo apt-get update
sudo apt-get install apt-transport-httpsRun sudo apt-get update
sudo apt-get install salt-mastersudo apt-get install salt-minionsudo apt-get install salt-sshsudo apt-get install salt-syndicsudo apt-get install salt-cloudsudo apt-get install salt-apiFor more information on next steps, reference Post-installation configuration
SUSE hosts packages in their official repositories for openSUSE and SLES systems. To see what Salt packages are available for a specific SUSE OS, such as latest releases that may be labeled as Experimental, see their Salt landing page:
The following commands install the latest official version currently available from SUSE, as referenced in the above package link.
Refresh the package list:
sudo zypper refreshsudo zypper install salt-mastersudo zypper install salt-minionsudo zypper install salt-sshsudo zypper install salt-syndicsudo zypper install salt-cloudsudo zypper install salt-apisudo zypper install salt-proxysudo systemctl enable salt-master && sudo systemctl start salt-mastersudo systemctl enable salt-minion && sudo systemctl start salt-minionsudo systemctl enable salt-syndic && sudo systemctl start salt-syndicsudo systemctl enable salt-api && sudo systemctl start salt-apisudo systemctl restart salt-minionFor more information on next steps, reference Post-installation configuration
sudo dnf install salt-mastersudo dnf install salt-minionsudo dnf install salt-sshsudo dnf install salt-syndicsudo dnf install salt-cloudsudo dnf install salt-apisudo systemctl enable salt-master && sudo systemctl start salt-mastersudo systemctl enable salt-minion && sudo systemctl start salt-minionsudo systemctl enable salt-syndic && sudo systemctl start salt-syndicsudo systemctl enable salt-api && sudo systemctl start salt-apiFor more information on next steps, reference Post-installation configuration
AMD64: Salt-Minion-3000.9-Py2-AMD64-Setup.exe | MD5 | SHA256
AMD64: Salt-Minion-3000.9-Py3-AMD64-Setup.exe | MD5 | SHA256
The installer can be run silently by providing the /S option at the command line. The options /master and /minion-name allow for configuring the master hostname and minion name, respectively. Here’s an example of running a silent installation from the command line:
Salt-Minion-3000.9-Py2-AMD64-Setup.exe /S /master=yoursaltmaster /minion-name=yourminionname
Salt-Minion-3000.9-Py3-AMD64-Setup.exe /S /master=yoursaltmaster /minion-name=yourminionname
For more information on next steps, reference Post-installation configuration
OS X Gatekeeper settings might prevent installation of the Salt package. If a warning appears during installation, open System Preferences > Security & Privacy > click Open Anyway
After the installation completes, run the following to configure the Salt minion ID, the Salt master location, and to start the required services.
sudo salt-config -i yourminionname -m yoursaltmasterOn OS X, the Salt minion configuration file is in the standard /etc/salt/minion location. To stop the Salt minion, run the following:
sudo launchctl stop com.saltstack.salt.minionTo start the Salt minion, run the following:
sudo launchctl start com.saltstack.salt.minionFor more information on next steps, reference Post-installation configuration
Installs the latest release. Updating installs the latest minor release but not a new major version.
sudo rpm --import https://repo.saltproject.io/py3/amazon/2/x86_64/3000/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/py3/amazon/2/x86_64/3000.repo | sudo tee /etc/yum.repos.d/salt-amzn.reposudo rpm --import https://repo.saltproject.io/yum/amazon/2/x86_64/3000/SALTSTACK-GPG-KEY.pub
sudo rpm --import https://repo.saltproject.io/yum/amazon/2/x86_64/3000/base/RPM-GPG-KEY-CentOS-7
curl -fsSL https://repo.saltproject.io/yum/amazon/2/x86_64/3000.repo | sudo tee /etc/yum.repos.d/salt-amzn.repoRun sudo yum clean expire-cache
sudo yum install salt-mastersudo yum install salt-minionsudo yum install salt-sshsudo yum install salt-syndicsudo yum install salt-cloudsudo yum install salt-apisudo systemctl enable salt-master && sudo systemctl start salt-mastersudo systemctl enable salt-minion && sudo systemctl start salt-minionsudo systemctl enable salt-syndic && sudo systemctl start salt-syndicsudo systemctl enable salt-api && sudo systemctl start salt-apiFor more information on next steps, reference Post-installation configuration
Installs a specific release. Updating doesn’t change the release that is installed.
Run the following commands to install the SaltStack repository and key:
sudo rpm --import https://repo.saltproject.io/py3/amazon/2/x86_64/archive/3000.9/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/py3/amazon/2/x86_64/archive/3000.9.repo | sudo tee /etc/yum.repos.d/salt-amzn.reposudo rpm --import https://repo.saltproject.io/yum/amazon/2/x86_64/archive/3000.9/SALTSTACK-GPG-KEY.pub
sudo rpm --import https://repo.saltproject.io/yum/amazon/2/x86_64/archive/3000.9/base/RPM-GPG-KEY-CentOS-7
curl -fsSL https://repo.saltproject.io/yum/amazon/2/x86_64/archive/3000.9.repo | sudo tee /etc/yum.repos.d/salt-amzn.repoRun sudo yum clean expire-cache
sudo yum install salt-mastersudo yum install salt-minionsudo yum install salt-sshsudo yum install salt-syndicsudo yum install salt-cloudsudo yum install salt-apisudo systemctl enable salt-master && sudo systemctl start salt-mastersudo systemctl enable salt-minion && sudo systemctl start salt-minionsudo systemctl enable salt-syndic && sudo systemctl start salt-syndicsudo systemctl enable salt-api && sudo systemctl start salt-apiFor more information on next steps, reference Post-installation configuration
Installs the latest release. Updating installs the latest minor release but not a new major version.
/etc/apt/sources.list.d/salt.list:
# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/10/armhf/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=armhf] https://repo.saltproject.io/py3/debian/10/armhf/3000 buster main" | sudo tee /etc/apt/sources.list.d/salt.list# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/apt/debian/9/armhf/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=armhf] https://repo.saltproject.io/apt/debian/9/armhf/3000 stretch main" | sudo tee /etc/apt/sources.list.d/salt.listRaspbian 9 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Raspbian 10 and later.
sudo apt-get update
sudo apt-get install apt-transport-https# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/9/armhf/3000/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=armhf] https://repo.saltproject.io/py3/debian/9/armhf/3000 stretch main" | sudo tee /etc/apt/sources.list.d/salt.listRaspbian 9 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Raspbian 10 and later.
sudo apt-get update
sudo apt-get install apt-transport-httpsRun sudo apt-get update
sudo apt-get install salt-mastersudo apt-get install salt-minionsudo apt-get install salt-sshsudo apt-get install salt-syndicsudo apt-get install salt-cloudsudo apt-get install salt-apiFor more information on next steps, reference Post-installation configuration
Installs a specific release. Updating doesn’t change the release that is installed.
/etc/apt/sources.list.d/salt.list:
# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/10/armhf/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=armhf] https://repo.saltproject.io/py3/debian/10/armhf/archive/3000.9 buster main" | sudo tee /etc/apt/sources.list.d/salt.list# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/apt/debian/9/armhf/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=armhf] https://repo.saltproject.io/apt/debian/9/armhf/archive/3000.9 stretch main" | sudo tee /etc/apt/sources.list.d/salt.listRaspbian 9 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Raspbian 10 and later.
sudo apt-get update
sudo apt-get install apt-transport-https# Download key
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/debian/9/armhf/archive/3000.9/salt-archive-keyring.gpg
# Create apt sources list file
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=armhf] https://repo.saltproject.io/py3/debian/9/armhf/archive/3000.9 stretch main" | sudo tee /etc/apt/sources.list.d/salt.listRaspbian 9 also requires apt-transport-https due to the repo being an https endpoint. This is no longer required with Raspbian 10 and later.
sudo apt-get update
sudo apt-get install apt-transport-httpsRun sudo apt-get update
sudo apt-get install salt-mastersudo apt-get install salt-minionsudo apt-get install salt-sshsudo apt-get install salt-syndicsudo apt-get install salt-cloudsudo apt-get install salt-apiFor more information on next steps, reference Post-installation configuration
Salt Bootstrap is a shell script that detects the target platform and selects the best installation method. (Supported Platforms)
Run these commands on the system that you want to use as the central management point.
# Download
curl -fsSL https://bootstrap.saltproject.io -o install_salt.sh
curl -fsSL https://bootstrap.saltproject.io/sha256 -o install_salt_sha256
# Verify file integrity
SHA_OF_FILE=$(sha256sum install_salt.sh | cut -d' ' -f1)
SHA_FOR_VALIDATION=$(cat install_salt_sha256)
if [[ "$SHA_OF_FILE" == "$SHA_FOR_VALIDATION" ]]; then
# After verification, run script to bootstrap master
echo "Success! Installing..."
sudo sh install_salt.sh -P -M -x python3
else
# If hash check fails, don't attempt install
echo "WARNING: This file is corrupt or has been tampered with."
fiYour Salt master can manage itself, so a Salt minion is installed along with the Salt master. If you do not want to install the minion, also pass the -N option.
Run these commands on each system that you want to manage using Salt.
# Download
curl -fsSL https://bootstrap.saltproject.io -o install_salt.sh
curl -fsSL https://bootstrap.saltproject.io/sha256 -o install_salt_sha256
# Verify file integrity
SHA_OF_FILE=$(sha256sum install_salt.sh | cut -d' ' -f1)
SHA_FOR_VALIDATION=$(cat install_salt_sha256)
if [[ "$SHA_OF_FILE" == "$SHA_FOR_VALIDATION" ]]; then
# After verification, run Linux or macOS / OSX minion install
echo "Success! Installing..."
sudo sh install_salt.sh -P -x python3
else
# If hash check fails, don't attempt install
echo "WARNING: This file is corrupt or has been tampered with."
fi# Windows: Using Windows PowerShell or PowerShell Core
# Download
Invoke-WebRequest -Uri https://winbootstrap.saltproject.io -OutFile C:\Temp\bootstrap-salt.ps1
Invoke-WebRequest -Uri https://winbootstrap.saltproject.io/sha256 -OutFile C:\Temp\bootstrap-salt-sha256
# Verify file integrity
$FileSha = (Get-FileHash C:\Temp\bootstrap-salt.ps1).hash
$ValidatedSha = Get-Content C:\Temp\bootstrap-salt-sha256
if ("$FileSha" -eq "$ValidatedSha") {
# After verification, run Windows minion install
Write-Output "Success! Installing..."
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
C:\Temp\bootstrap-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."
}For more information on next steps, reference Post-installation configuration
For installation on other platforms and alternative installation methods, see the Salt Installation Instructions.
We do NOT recommend installing unsupported or archived versions of Salt. These may be impacted by security vulnerabilities. Run at your own risk.
Raspbian 8 Packages
End of Life Support for Raspbian 8 ended in June 2020. As a result, 2019.2.7, 3000.5 are the last Salt releases for which Raspbian 8 packages were created. The packages are only retrievable via the archive.
Debian 8 Packages
End of Life Support for Debian 8 ended in June 2020. As a result, 2019.2.7, 3000.5 are the last Salt releases for which Debian 8 packages were created. The packages are only retrievable via the archive.
RHEL 6 Packages
End of Life Support for RHEL 6 ended in November 2020. As a result, 2019.2.7 and 3000.5 were the last Salt releases for which RHEL 6 packages were created. The packages are only retrievable via the archive.
Amazon Linux Packages
End of Life Support for Amazon Linux ended in December 2020. As a result, 2019.2.8 and 3000.6 were the last Salt releases for which Amazon Linux packages were created. The packages are only retrievable via the archive.
Amazon Linux 2 will continue to be supported.
The Salt Project package repo supports mirroring using an s3 api compatible sync tool such as the aws-cli, or rclone. Note that we use a custom endpoint so we can switch buckets easily. Please sync no more than once per day.
rclone example:
RCLONE_CONFIG_S3_TYPE=s3 RCLONE_CONFIG_S3_PROVIDER=Other RCLONE_CONFIG_S3_ENV_AUTH=false RCLONE_CONFIG_S3_ENDPOINT=https://s3.repo.saltproject.io rclone sync --fast-list --use-server-modtime -v s3:s3/ ./fullrepo/Please make sure to include the --use-server-modtime flags as not doing so will drastically increase our costs.
If you can’t use the --use-server-modtime flag because your version of rclone is too old, you can use the -c flag:
RCLONE_CONFIG_S3_TYPE=s3 RCLONE_CONFIG_S3_PROVIDER=Other RCLONE_CONFIG_S3_ENV_AUTH=false RCLONE_CONFIG_S3_ENDPOINT=https://s3.repo.saltproject.io rclone sync --fast-list -c -v s3:s3/ ./fullrepo/aws-cli example:
aws --no-sign-request --endpoint-url https://s3.repo.saltproject.io s3 sync --delete --exact-timestamps s3://s3/ ./fullrepo/For syncing https://archive.repo.saltproject.io, the endpoint url is https://s3.archive.repo.saltproject.io. Everything else is the same.