Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Installing Salt

Mike Reeves edited this page Aug 11, 2013 · 9 revisions
      1. Salt Install
To get this party started you need to add the repository:

`sudo apt-get install python-software-properties`

`sudo add-apt-repository ppa:saltstack/salt`

`sudo apt-get update`

On your backend that you want to make you salt master:

`sudo apt-get install salt-master salt-minion`

On your Sensor:

`sudo apt-get install salt-minion`

      1. Configuration on the master
On your master modify /etc/salt/master and change the following lines of code:

`#file_roots:

  1. base:
  2. - /srv/salt`
to:

file_roots:

  base:
    - /srv/salt

and:

  1. pillar_roots:
  2. base:
  3. - /srv/pillar
to: pillar_roots:
  base:
    - /srv/pillar

Restart your master:



sudo service salt-master restart

Configuration on the minion

Modify /etc/salt/minion and change the following line:

  1. master: salt
to:

master:

Restart your minion:

sudo service salt-minion restart

If you already have Security Onion installed you will need to run the following command. You will also need to run this every time you use sosteup on a sensor on the sensor until I fix the code to handle this:

sudo ufw allow salt

Register your Minions

Now that everything is running let's make sure you can talk to your minions. Run the following command:

sudo salt-key -L

Your output should look like this:

http://pimp.geekempire.com/pics/cache/misc/onionsalt/OSscreenshot1_595.png

Now accept all keys with the following command:

sudo salt-key -a '*'

http://pimp.geekempire.com/pics/cache/misc/onionsalt/OSscreenshot3_595.png

Now run the salt-key -L and you should see they are accepted. Let's make sure we can talk to everyone and everyone is happy.

sudo salt '*' test.ping

http://pimp.geekempire.com/pics/cache/misc/onionsalt/OSscreenshot2_595.png

Head back to the [Installation] to get this mug going..

Clone this wiki locally