Git Product home page Git Product logo

chef-hipchat's People

Contributors

werdan avatar zandyz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

chef-hipchat's Issues

412 Precondition Failed

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.