Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for new Slack Webhooks format #15

Open
seantcaron opened this issue Nov 10, 2016 · 0 comments
Open

Update for new Slack Webhooks format #15

seantcaron opened this issue Nov 10, 2016 · 0 comments

Comments

@seantcaron
Copy link

Hi there, great little report processor here but Slack has changed a little since it was first written and it needs some minor modifications to run.

This could be fixed in various ways depending on preference, but for a quick and dirty fix, I modified:

lib/puppet/reports/slack.rb

In here, I changed the req.url just slightly to read:

req.url "/services/#{SLACK_TOKEN}"

With this modification made, configure the settings for this module as follows:

  • Set slack_url to https://hooks.slack.com
  • Set slack_token to everything that comes after /services/ in the Webhook URL provided by Slack

It would also be nice if the documentation mentioned that inifile, stdlib and check_run are required dependencies.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant