Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning SaltStack
  • Table Of Contents Toc
Learning SaltStack

Learning SaltStack

By : Myers
4.3 (18)
close
close
Learning SaltStack

Learning SaltStack

4.3 (18)
By: Myers

Overview of this book

If you are a system administrator who manages multiple servers, then you know how difficult it is to keep your infrastructure in line. If you've been searching for an easier way, this book is for you. No prior experience with SaltStack is required.
Table of Contents (10 chapters)
close
close

The Salt event system


Events are an integral part of almost everything Salt does. However, for the most part, these events are designed to be invisible, to work behind the scenes to provide interprocess communication and make an asynchronous platform feel synchronous in practice.

However, we can also leverage the event system for our own purposes.

Listening for events

Before you learn about reacting to events or firing our own, let's inspect some of these events that are happening all the time in Salt. A script is provided in the Salt source for just this purpose. You can find it on Github at https://github.com/saltstack/salt/blob/develop/tests/eventlisten.py.

Download the script and place it somewhere on your master server. I am going to download it to the /root/ directory on my server, as follows:

# pwd
/root
# wget https://raw.githubusercontent.com/saltstack/salt/v2014.7.0/tests/eventlisten.py
--2014-11-27 00:07:19--  https://raw.githubusercontent.com/saltstack/salt/v2014.7.0/tests/eventlisten...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning SaltStack
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon