Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

The chef_slack cookbook has been deprecated

The chef_slack cookbook has been deprecated and is no longer being maintained by its authors. Use of the chef_slack cookbook is no longer recommended.


chef_slack (6) Versions 3.1.2

Slack resource for posting to channels

cookbook 'chef_slack', '~> 3.1.2'
cookbook 'chef_slack', '~> 3.1.2', :supermarket
knife supermarket install chef_slack
knife supermarket download chef_slack
Quality 88%

chef_slack Cookbook

Build Status Cookbook Version

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



  • Any platform supported by Chef


  • Chef 12.7+


  • 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 ''
  not_if { node['im_boring'] }
slack_notify "channel_nothing" do
  message "heres a message to kick off later"
  username 'test_user'
  channels ['foo','bar']
  webhook_url ''
  icon_emoji ':tada:'
  action :nothing

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

License & Authors

Author: Ian Henry <>

Author: Jason Rohwedder <>

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

chef_slack CHANGELOG

This file is used to list changes made in each version of the chef_slack cookbook.

3.1.2 (2018-03-15)

  • Resolve the new FC118 foodcritic warning
  • Resolve a Chef 14 deprecation warning

3.1.1 (2017-09-01)

  • Update to fix property names
  • Test with Local Delivery and not Rake
  • Add a basic chefspec test
  • Update apache2 license string to be a SPDX compliant string
  • Add chef_version compatibility with older chef releases
  • Enabled Foodcritic FC016 again
  • Remove maintainer files
  • Update kitchen config and use dokken-images in the kitchen dokken config
  • Require Chef 12.7 to workaround custom resource issues

3.1.0 (2017-02-21)

  • Add icon_emoji property
  • add icon_emoji to test recipe

3.0.0 (2017-02-14)

  • Require Chef 12.5 and remove compat_resource

2.0.0 (2016-10-11)

  • Convert LWRP to a custom resource and use compat_resource cookbook for Chef 12.1+ compatibility
  • Properly support why-run mode now
  • Add a test recipe to ensure notifications actually work
  • Dynamically install the gem within the resource and deprecate the use of the default recipe
  • Properly support notification when channels aren't specified
  • Properly notify the update on the resource when the notify occurs

v1.0.0 (2016-09-15)

  • Require Chef 12.1
  • Testing updates


  • Initial push to supermarket
  • Add linting / integration testing in Travis
  • Add maintainers docs, contributing docs, and testing docs
  • Add license headers to files
  • Add a Berksfile
  • Added additional platforms to the metadata
  • Add issues_url, source_url and chef_version to the metadata
  • Add a chefignore file to limit files uploaded to the chef server
  • Attribute the original work in the readme


  • [Ian Henry] - Initial release of slack

Collaborator Number Metric

3.1.2 passed this metric

Contributing File Metric

3.1.2 passed this metric

Foodcritic Metric

3.1.2 passed this metric

No Binaries Metric

3.1.2 passed this metric

Publish Metric

3.1.2 failed this metric

chef_slack is deprecated

Supported Platforms Metric

3.1.2 passed this metric

Testing File Metric

3.1.2 passed this metric

Version Tag Metric

3.1.2 passed this metric