cookbook 'chef_slack', '~> 3.1.2'
The chef_slack cookbook has been deprecated
Author provided reason for deprecation:
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 Follow7
Slack resource for posting to slack.com channels
cookbook 'chef_slack', '~> 3.1.2', :supermarket
knife supermarket install chef_slack
knife supermarket download chef_slack
chef_slack Cookbook
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
Author: Jason Rohwedder 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.1.2 (2018-03-15)
- Resolve the new FC118 foodcritic warning
- Resolve a Chef 14 deprecation warning
3.1.1 (2017-09-01)
- Update README.md 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
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.1.2 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
3.1.2 failed this metric
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): chef_slack/resources/notify.rb: 1
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
3.1.2 passed this metric
Testing File Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.2 failed this metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
3.1.2 failed this metric
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): chef_slack/resources/notify.rb: 1
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
3.1.2 passed this metric
Testing File Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.2 failed this metric
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
3.1.2 passed this metric
Testing File Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.2 failed this metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number