sensu / sensu-ansible

An Ansible role to deploy a fully dynamic Sensu stack!
https://ansible-sensu.readthedocs.io
MIT License
126 stars 96 forks source link

Write a Sensu Ansible Callback Plugin #185

Open jaredledvina opened 6 years ago

jaredledvina commented 6 years ago

@jspaleta mentioned this idea to me during the Summit, we should provide a support Ansible Callback plugin that can be used to report the results of the Ansible run to Sensu.

Datadog has a callback plugin that is pretty sweet here: https://github.com/DataDog/ansible-datadog-callback

Docs: https://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html#callback-plugins

jspaleta commented 6 years ago

hey,

So thinking of it like this: 1) Initially we can write it to target the sensu-client/sensu-agent http port so it will work with both 1.x and 2.x.

2) Then we can add specific api support to talk to the appropriate sensu 1.x/2.x api endpoints.