Skip to content

Instantly share code, notes, and snippets.

@samos123
Last active September 23, 2017 22:07
Show Gist options
  • Save samos123/f9a526f774fc13af96f1fc061cfc329b to your computer and use it in GitHub Desktop.
Save samos123/f9a526f774fc13af96f1fc061cfc329b to your computer and use it in GitHub Desktop.
#!/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