The Kentik Collection for Ansible includes an event source plugin from Kentik that accepts alert notification JSON and works in conjunction with Ansible EDA rulebooks to allow users to automate changes to their environment.
We follow the Ansible Code of Conduct in all our interactions within this project.
If you encounter abusive behavior, please refer to the policy violations section of the Code for information on how to raise a complaint.
Join us on:
- Email:
- Support email: Email alias for opening tickets and requesting support from Kentik
- Slack:
- Kentik Users: Slack workspace for all Kentik users to colloborate
For more information about communication with the Ansible community, refer to the Ansible communication guide.
The content of this collection is made by people like you, a community of individuals collaborating on making the world better through developing automation software.
We are actively accepting new contributors and all types of contributions are very welcome.
Don't know how to start? Refer to the Ansible community guide!
If you find problems, please open an issue or create a PR against the Kentik collection repository.
See CONTRIBUTING.md for more details.
We also use the following guidelines:
Tested with Ansible Core >= 2.14.2 versions, and the current development version of Ansible. Ansible Core versions prior to 2.14.2 are not supported.
- Kentik portal account
- Ansible Automation Platform with EDA Controller instance
---
- name: Listen for alerts using kentik_webhook
hosts: all
## Define our source for events
sources:
- kentik_webhook: # for local tests only. In production use kentik.ansible_eda.kentik_webhook
host: 0.0.0.0
port: 80
## Define the conditions we are looking for
rules:
- name: Print out the alert
condition: event.i == 1
## Define the action we should take should the condition be met
action:
run_playbook:
name: playbooks/example_playbook.yml
Before using this collection, you need to install it with the Ansible Galaxy command-line tool:
ansible-galaxy collection install kentik.ansible_eda
You can also include it in a requirements.yml
file and install it with ansible-galaxy collection install -r requirements.yml
, using the format:
---
collections:
- name: kentik.ansible_eda
Note that if you install the collection from Ansible Galaxy, it will not be upgraded automatically when you upgrade the ansible
package. To upgrade the collection to the latest available version, run the following command:
ansible-galaxy collection install kentik.ansible_eda --upgrade
You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax to install version 0.1.0
:
ansible-galaxy collection install kentik.ansible_eda:==1.0.1
See using Ansible collections for more details.
See the changelog.
GNU General Public License v3.0 or later.
See LICENSE to see the full text.
If you do have additional questions/remarks, feel free to reach out to Kentik support, via email.
If you think this template did not solve all your problems, please also let us know, either with a message or a pull request. Together we can improve this template to make it easier for our future projects.