Last active
May 16, 2021 13:29
-
-
Save t0xicCode/b2c0e1cc3eecb2c91227f356df3b694a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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