Skip to content

Instantly share code, notes, and snippets.

@asmaps
Last active August 29, 2015 14:00
Show Gist options
  • Save asmaps/4ddd787327a8d496947e to your computer and use it in GitHub Desktop.
Save asmaps/4ddd787327a8d496947e to your computer and use it in GitHub Desktop.
Aexea salt minion setup script
echo "adding salt repositories..."
add-apt-repository ppa:saltstack/salt
echo "installing salt minion locally..."
aptitude update
aptitude install -y salt-minion
echo "enter minion_id. To keep default (hostname) just hit [ENTER]:"
read minion_id
if [ ! -z $minion_id ]; then
echo $minion_id > /etc/salt/minion_id
fi
echo "master: ip-172-31-1-89.eu-west-1.compute.internal" > /etc/salt/minion
service salt-minion restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment