Using the queue system

The queue system is another component of Salt with the ability to fire events. This can be used by the reactor system. However, before we get ahead of ourselves, let's go through the basics of using the queue system.

Learning how queues work

At its most basic level, the queue is very simple. Items can be added to the queue and then processed at a later time in the order in which they were added. Depending on the queue module being used, items may or may not be required to be unique.

For our examples, we'll use sqlite, the default queue module. This module should work in any infrastructure because sqlite3 is built in Python. It will also automatically generate any database files if they don't already exist. Take note that

Get Mastering SaltStack - Second Edition 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.