From 853480fca54492a38feaa4fa76941e88f54f11a8 Mon Sep 17 00:00:00 2001 From: mortzu Date: Wed, 8 Nov 2017 22:48:51 +0100 Subject: feature: Added hook for XMPP MUC (#951) * Added hook for XMPP MUC * Updated dockerfile * Added timeout to prevent oxidized to stop on XMPP error * Updated README --- docs/Hooks.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'docs') diff --git a/docs/Hooks.md b/docs/Hooks.md index 12e3ab7..bf6ea54 100644 --- a/docs/Hooks.md +++ b/docs/Hooks.md @@ -141,3 +141,28 @@ hooks: ``` Note the channel name must be in quotes. + +## Hook type: xmppdiff + +The `xmppdiff` hook posts config diffs to a [XMPP](https://en.wikipedia.org/wiki/XMPP) chatroom of your choice. It only triggers for `post_store` events. + +You will need to manually install the `xmpp4r` gem on your system: + +``` +gem install xmpp4r +``` + +Configuration example: + +``` yaml +hooks: + slack: + type: xmppdiff + events: [post_store] + jid: "user@server.tld/resource" + password: "password" + channel: "room@server.tld" + nick: "nickname" +``` + +Note the channel name must be in quotes. -- cgit v1.2.1