Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rangertaha/node-salt-events

This node module is used to fire events using the Salt Events System. This enables node applications to send events on the salt events bus.
https://github.com/rangertaha/node-salt-events

Last synced: 6 days ago
JSON representation

This node module is used to fire events using the Salt Events System. This enables node applications to send events on the salt events bus.

Awesome Lists containing this project

README

        

Salt Events
===========

This module is used to fire events using the Salt Events System. This enables node applications to send events on the salt events bus.

Salt is a powerful configuration management system and remote execution framework. Salt has many parts, one of which is the Salt Event System. This is a socket bus allowing minions and masters to send events/messages.

* Website: http://www.saltstack.com
* Repo: https://github.com/saltstack

Requirements
-----------

* nodejs
* salt-minion

Installing
-----------

npm install saltevents

Application Usage
-----------

// Import the saltevents module
var saltEvents = require('saltevents');

payload = {
'hello': 'world',
'status': 'success'
}

// Send payload to local bus
saltEvents.local(payload, 'tag');

// Send payload to the master
saltEvents.master(payload, 'tag');

ToDO
----

* Use on the command line
* Send events to the minion from the master
* Get events from the socket
* Listen for events on the socket and process it with callback function