An open API service indexing awesome lists of open source software.

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

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