dcm-ops / chef-slack_handler Goto Github PK
View Code? Open in Web Editor NEWChef handler for SlackHQ
Chef handler for SlackHQ
change line 55 in files/default/slack_handler.rb from:
slack = Slackr::Webhook.new( team, api_key, config)
to:
slack = Slackr::connect( team, api_key, config )
== PLEASE DO NOT POST ANY PR OR ISSUE ON THIS REPO ==
chef-slack_handler is now here : https://github.com/rackspace-cookbooks/chef-slack_handler/compare
Hi there,
I am constantly trying to integrate my chef handler reports to slack for reporting the chef-client run. But for some reason, i am not been able to use the method you have suggested as i get the following error.
Running handlers:
[2014-12-22T11:59:29+00:00] INFO: Running report handlers
[2014-12-22T11:59:29+00:00] DEBUG: Sending report to Slack #channel@#{team}.slack.com
[2014-12-22T11:59:29+00:00] DEBUG: Failed to send message to Slack: Slack.com - 404 - No hooks
Chef::Handler::Slack Running handlers complete [2014-12-22T11:59:29+00:00] INFO: Report handlers complete Chef Client finished, 3/10 resources updated in 2.509132201 seconds
For some reason i get a 404 NO HOOKS error. Could you kindly help me with another alternative? Also what are :tokens?? isn't it WEBHOOK URL? as that is the only thing we get during a slack incoming web hook creation.
Hoping to get a response at the earliest as this is very urgent.
Thank you for looking it.
Regards,
Akshay
Hi there, thanks for making this. Are you going to have it added to the Chef Supermarket so its easy to add as a dependency?
Thanks
Rob
Unless I'm missing something, this cannot work with the current Slack setup for web hooks. Please advise. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.