-
Notifications
You must be signed in to change notification settings - Fork 9
Installing Salt
- Salt Install
`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`
- Configuration on the master
`#file_roots:
- base:
- - /srv/salt`
file_roots:
base: - /srv/salt
and:
- pillar_roots:
- base:
- - /srv/pillar
base: - /srv/pillar
Restart your master:
sudo service salt-master restart
Modify /etc/salt/minion and change the following line:
- master: salt
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
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..