https://github.com/base2services/base2-chef-handler-notifier-cookbook
https://github.com/base2services/base2-chef-handler-notifier-cookbook
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/base2services/base2-chef-handler-notifier-cookbook
- Owner: base2Services
- License: mit
- Created: 2016-05-15T06:38:10.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-14T04:43:46.000Z (almost 10 years ago)
- Last Synced: 2025-03-27T17:49:11.780Z (about 1 year ago)
- Language: Ruby
- Size: 12.7 KB
- Stars: 0
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# base2-chef-handler-notifier
### Usage
**Works on Windows and Linux**
Deploys to 'c:/chef/handlers' OR '/etc/chef/handlers'
**Mandatory attribute update** to use this:
```force_default['base2']['automation']['handlers']['slack']['web_hook_url'] = 'https://hooks.slack.com/services/zzzzz/xxx/yyyy'```
### Scripts and Files Generated
Will create a reusable slack library for scripts external to chef. Use this wherever you need to send a slack.
See `/ruby/slack_notifier.rb`
Test with ` ruby /scripts/test_slack.rb`
Get docker output at the end of your Chef run with `ruby /scripts/docker_to_slack.rb`
```execute "notify docker" do```
``` command "ruby /etc/chef/handlers/scripts/docker_to_slack.rb"```
```end```
**See attributes files for different emojis etc**