pour-some-salt-on-me

13y, 169d ago [edited]

Pour some salt on me

Messing with salt-stack

Setup salt-master on ubuntu

sudo apt-get -y install python-software-properties
sudo add-apt-repository -y ppa:saltstack/salt
sudo apt-get update
sudo apt-get -y install salt-master
sudo apt-get -y install salt-minion

salt-master ports

The salt-master must make the following ports available to it's salt-minions:

  • 4505
  • 4506

salt-minions do not need any special firewall rules

Setup salt-minion on ubuntu

MASTER=master.foxhop.net # put your master here

sudo apt-get -y install python-software-properties
sudo add-apt-repository -y ppa:saltstack/salt
sudo apt-get update
sudo apt-get -y install salt-minion

sudo sed -i "s/#master: salt/#master: salt\nmaster: $MASTER/" /etc/salt/minion

sudo service salt-minion restart

or this

wget --no-check-certificate -O - http://bootstrap.saltstack.org | sudo sh && echo "master: master.foxhop.net" >> /etc/salt/minion.d/foxhop.conf && echo "append_domain: foxhop.net" >> /etc/salt/minion.d/foxhop.conf;

minion log

/var/log/salt/minion

Salt keys

keys and ids

List the accepted and unaccepted Salt keys

salt-key -L

Accept a minion key

salt-key -a <minion id>

Accept all unaccepted minion keys

salt-key -A

Comments

hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Leave first comment to start a conversation!