diff options
author | Nat Morris <nat@nuqe.net> | 2017-02-16 16:31:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 16:31:58 +0000 |
commit | ed2ec68d0a6a821d1f2226cfa437150d94a508d7 (patch) | |
tree | ab1b14193e50f3ae5075ebf1b481200c66bbae6a /README.md | |
parent | 103a2e41049e3485d97fd2cb6af965bf1a6fa754 (diff) |
README configuration details for the slackdiff hook
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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. |