Summary

Beacons give Minions the ability to raise events based on monitored conditions. A validate() function is helpful for ensuring that the configuration is correct, but it is not required. A beacon() function is required, as it is the function that performs the actual monitoring. Use execution modules when possible to perform the heavy lifting. Beacons can run at very short intervals, but by having them store data in grains, you can set notifications at longer intervals.

Now that we have all of the Minion-side modules in the book out of the way, let's go back and finish up with some Master-side modules. Next up: extending the Master.

Get Extending SaltStack now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.