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

RSS

chef_slack (5) Versions 3.0.0

Slack resource for posting to slack.com channels

Berkshelf/Librarian
Policyfile
Knife
cookbook 'chef_slack', '= 3.0.0'
cookbook 'chef_slack', '= 3.0.0', :supermarket
knife cookbook site install chef_slack
knife cookbook site download chef_slack
README
Dependencies
Changelog
Quality 60%

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.5+

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'
  action :nothing
end

something "talk_as_test_user_to_multiple_channels" do
  notifies :say, "slack[channel_nothing]", :immediately
end

License & Authors

Author: Ian Henry <ihenry@chef.io>

Author: Jason Rohwedder <jro@risk.io> 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.

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.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

0.2.0

  • 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

0.1.0

  • [Ian Henry] - Initial release of slack

Collaborator Number Metric
            

3.0.0 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric
            

3.0.0 failed this metric

FC016: LWRP does not declare a default action: chef_slack/resources/notify.rb:1
Run with Foodcritic Version 8.2.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

3.0.0 passed this metric

Publish Metric
            

3.0.0 passed this metric

Supported Platforms Metric
            

3.0.0 passed this metric