O'Reilly logo

Salt Cookbook by Anirban Saha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Identifying and working with Salt event types

To work with Salt events, one of the most important aspects is to identify the type of Salt event. In this recipe, we will look at some of the Salt event types and how we can identify and work with them.

How to do it...

  1. A preconfigured Python script is available to listen to Salt events continuously. Download the file from the following location on the Salt master and run it using the Python command:
    [root@salt-master ~]# wget https://raw.github.com/saltstack/salt/develop/tests/eventlisten.py
    
    [root@salt-master ~]# python eventlisten.py
    
  2. Configure a new minion and start the salt-minion service daemon on the minion.
  3. Observe the events being captured on the Salt master; there should be outputs as follows: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required