GithubHelp home page GithubHelp logo

chef_slack's Introduction

chef_slack Cookbook

Build Status Cookbook Version

This cookbook sends messages to a Slack channel using the Incoming Webhook Integration

Requirements

Platforms

  • Any platform supported by Chef

Chef

  • Chef 12.7+

Cookbooks

  • none

slack_notify Resource Usage

In your metadata.rb you need to add depends chef_slack'. Passing the below will use default attributes

slack_notify "Say Summat!"
slack_notify "send_notification_message" do
  message "This is a notification message"
  webhook_url 'https://hooks.slack.com/services/XXXX/XXXXXXX/XXXXXX'
  not_if { node['im_boring'] }
end
slack_notify "channel_nothing" do
  message "heres a message to kick off later"
  username 'test_user'
  channels ['foo','bar']
  webhook_url 'https://hooks.slack.com/services/XXXX/XXXXXXX/XXXXXX'
  icon_emoji ':tada:'
  action :nothing
end

something "talk_as_test_user_to_multiple_channels" do
  notifies :notify, "slack_notify[channel_nothing]", :immediately
end

License & Authors

Author: Ian Henry <[email protected]>

Author: Jason Rohwedder <[email protected]> https://github.com/KennaSecurity/chef-slack

Copyright:: 2009-2015, Chef Software, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

chef_slack's People

Contributors

chef-delivery avatar eheydrick avatar iennae avatar jlsjonas avatar jro avatar tas50 avatar thommay avatar wickett avatar wildbillcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chef_slack's Issues

Documentation error

Cookbook version

latest

Chef-client version

0.12.10

Platform Details

Ubuntu 14.04

Scenario:

Trying to include it

Steps to Reproduce:

in the doc , it says to add depend 'slack' instead 'chef_slack'
also should be include_recipe 'chef_slack'

Document not proper

Document not follow resource Custom Resource Usage and also notifies.

Please use following:

chef_slack_notify "Say Summat!"

chef_slack_notify "send_notification_message" do
  message "This is a notification message"
  webhook_url 'https://hooks.slack.com/services/XXXX/XXXXXXX/XXXXXX'
  not_if { node['im_boring'] }
end
chef_slack_notify "channel_nothing" do
  message "heres a message to kick off later"
  username 'test_user'
  channels ['foo','bar']
  webhook_url 'https://hooks.slack.com/services/XXXX/XXXXXXX/XXXXXX'
  action :nothing
end

something "talk_as_test_user_to_multiple_channels" do
  notifies :notify, "chef_slack_notify[channel_nothing]", :immediately
end

This is because your cookbook name is chef_slack and you only have one action ie, notify

cannot find this cookbook on supermarket.chef.io

Cookbook version

Any

Chef-client version

0.12.10

Platform Details

Ubuntu 14.04

Scenario:

Trying use this cookbook but nowhere to be found

Steps to Reproduce:

knife cookbook site download chef_slack

Expected Result:

download the cookbook

Actual Result:

ERROR: The object you are looking for could not be found
Response:

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.