Salt

From John's wiki
Jump to navigation Jump to search

To install a salt-minion on Debian:

apt install vim curl
curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/debian/11/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/debian/11/amd64/latest bullseye main" | tee /etc/apt/sources.list.d/salt.list
apt update && apt dist-upgrade
apt install salt-minion
echo NAME > /etc/salt/minion_id
echo master: 10.0.12.32 > /etc/salt/minion.d/minion.conf
/sbin/service salt-minion restart

Then add the key on the salt master.