New in version 2016.3.0.
This is a queue with postgres as the backend. It uses the jsonb store to store information for queues.
depends: | python-psycopg2 |
---|
To enable this queue, the following needs to be configured in your master config. These are the defaults:
queue.pgjsonb.host: 'salt' queue.pgjsonb.user: 'salt' queue.pgjsonb.pass: 'salt' queue.pgjsonb.db: 'salt' queue.pgjsonb.port: 5432
Use the following Pg database schema:
CREATE DATABASE salt WITH ENCODING 'utf-8'; -- -- Table structure for table `salt` -- DROP TABLE IF EXISTS salt; CREATE OR REPLACE TABLE salt( id SERIAL PRIMARY KEY, data jsonb NOT NULL );
salt-run queue.insert test '{"name": "redis", "host": "172.16.0.8", "port": 6379}' backend=pgjsonb salt-run queue.process_queue test all backend=pgjsonb
Delete an item or items from a queue
Add an item or items to a queue
List contents of a queue
Provide the number of items in a queue
Return a list of Salt Queues on the Salt Master
Pop one or more or all items from the queue return them.
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/queues/all/salt.queues.pgjsonb_queue.html