Last active
September 23, 2017 22:07
-
-
Save samos123/f9a526f774fc13af96f1fc061cfc329b 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/bash | |
NODEID=$1 | |
SALTMASTER=$2 | |
echo "deb https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3 xenial main" > /etc/apt/sources.list.d/salt.list | |
apt-get update | |
mkdir -p /etc/salt/minion.d/ | |
cat > /etc/salt/minion.d/minion.conf << EOL | |
master: $SALTMASTER | |
id: $NODEID | |
EOL | |
apt-get install salt-minion -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment