From ed2ec68d0a6a821d1f2226cfa437150d94a508d7 Mon Sep 17 00:00:00 2001 From: Nat Morris Date: Thu, 16 Feb 2017 16:31:58 +0000 Subject: README configuration details for the slackdiff hook --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index e1d53fc..2f3defc 100644 --- a/README.md +++ b/README.md @@ -874,6 +874,29 @@ AWS SNS hook requires the following configuration keys: Your AWS credentials should be stored in `~/.aws/credentials`. +## Hook type: slackdiff + +The `slackdiff` hook posts colorized config diffs to a [Slack](http://www.slack.com) channel of your choice. It only triggers for `post_store` events. + +You will need to manually install the `slack-api` gem on your system: + +``` +gem install slack-api +``` + +Configuration example: + +``` yaml +hooks: + slack: + type: slackdiff + events: [post_store] + token: SLACK_BOT_TOKEN + channel: "#network-changes" +``` + +Note the channel name must be in quotes. + # Ruby API The following objects exist in Oxidized. -- cgit v1.2.1