Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dalen/slack-puppetdbquery

PuppetDB query command for Slack
https://github.com/dalen/slack-puppetdbquery

Last synced: 21 days ago
JSON representation

PuppetDB query command for Slack

Awesome Lists containing this project

README

        

A outgoing webhook handler for [Slack](https://slack.com) that queries PuppetDB
for nodes. The node query syntax is done using
[node-puppetdbquery](https://www.npmjs.org/package/node-puppetdbquery).

Installation
============

clone the git repo on your PuppetDB host, copy the `config.json.example` file to
`config.json` and edit it to match your environment. Especially edit the token
to match the one for your Slack webhook.

Install the dependencies using `npm install` (in the source directory).
And then run it using `npm start` (requires coffee-script,
`npm install -g coffee-script`).

Then setup a outgoing Slack webhook to point to to the URL of your server, and
choose some activation keyword like `puppetdbquery:`.