Skip to content

Instantly share code, notes, and snippets.

@t0xicCode
Last active May 16, 2021 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t0xicCode/b2c0e1cc3eecb2c91227f356df3b694a to your computer and use it in GitHub Desktop.
Save t0xicCode/b2c0e1cc3eecb2c91227f356df3b694a to your computer and use it in GitHub Desktop.
#!/bin/sh
# https://bit.ly/3evQLBS
export DEBIAN_FRONTEND=noninteractive
if [ ! `which gnupg` ]; then
apt install -y gnupg
fi
wget -O - https://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
cat >/etc/apt/sources.list.d/saltstack.list <<EOF
deb http://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest focal main
EOF
apt update
apt install -y salt-minion
systemctl restart salt-minion
read -n1 -r -p "Press space to continue..." key
salt-call state.apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment