summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorNat Morris <nat@nuqe.net>2017-02-16 16:31:58 +0000
committerGitHub <noreply@github.com>2017-02-16 16:31:58 +0000
commited2ec68d0a6a821d1f2226cfa437150d94a508d7 (patch)
treeab1b14193e50f3ae5075ebf1b481200c66bbae6a /README.md
parent103a2e41049e3485d97fd2cb6af965bf1a6fa754 (diff)
README configuration details for the slackdiff hook
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 23 insertions, 0 deletions
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.