How to Install salt on Raspbian 11

Saltstack continues to evolve and recent versions don’t install the same way as older versions. Following the official Debian instructions doesn’t work either. I finally got it running on the latest version of Raspbian. We’ll follow the general procedure for setting up yum to install it from a trusted source.

First, we’ll need to download the gpg key, then we’ll set up the repo. Issue a “sudo su -” and then run the following commands:

Install the gpg key

cd /etc/apt/trusted.gpg.d/
curl -fsSL -o salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/debian/11/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg

Add the source repo

echo "deb [signed-by=/etc/apt/trusted.gpg.d/salt-archive-keyring-2023.gpg arch=arm64] https://repo.saltproject.io/salt/py3/debian/11/arm64/latest bullseye main" | sudo tee /etc/apt/sources.list.d/salt.list 

Install salt-minion

apt-get update
apt-get install salt-minion
systemctl enable salt-minion && systemctl start salt-minion

That’s it! You should be up-and-running! Jump over to your salt server and run “salt-key”. You should see your new Raspberry PIs waiting for configuration!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.