opsway / chef-hipchat Goto Github PK
View Code? Open in Web Editor NEWOpscode Chef HipChat exception handler
License: Other
Opscode Chef HipChat exception handler
License: Other
I'm running the hipchat
recipe as part of the chef_handlers
cookbook, and am getting a bad response from the HipChat API. i'm pretty sure that I've got everything set up correctly, and have successfully tested with the HipChat command ruby script.
[2013-12-12T02:19:17-05:00] INFO: HTTP Request Returned 412 Precondition Failed: {"message"=>"Run list contains invalid items: no such cookbook fail.", "non_existent_cookbooks"=>["fail"], "cookbooks_with_no_versions"=>[]}
I have modified the hipchat.rb
recipe slightly to get the API
and room
from attributes instead of from a data bag.
chef_gem "httparty" do
version "=0.11.0"
end
chef_gem "hipchat"
api_token = "#{node['chef_handler']['hipchat_api']}"
room_name = "#{node['chef_handler']['hipchat_room']}"
# install the handler to the handlers folder
template "#{node['chef_handler']['handler_path']}/hipchat-notification-handler.rb" do
source "hipchat-notification-handler.erb"
owner "root"
group "root"
mode "0644"
variables(
:api_token => api_token,
:room_name => room_name
)
end
# configure the handler
chef_handler "HipChat::NotifyRoom" do
source "#{node['chef_handler']['handler_path']}/hipchat-notification-handler.rb"
supports :exception => true
arguments :notify_users => false
action :enable
end
Has anyone ever seen this before?
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.