pour-some-salt-on-me

pour-some-salt-on-me

Pour some salt on me ##########################

Messing with salt-stack

.. contents::

Setup salt-master on ubuntu

.. code-block:: bash

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:

salt-minions do not need any special firewall rules

Setup salt-minion on ubuntu

.. code-block:: bash

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: $MASTER/” /etc/salt/minion

sudo service salt-minion restart

or this

.. code-block:: bash

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

.. code-block:: bash

salt-key -L

Accept a minion key

.. code-block:: bash

salt-key -a

Accept all unaccepted minion keys

.. code-block:: bash

salt-key -A