Ansible Tower
To integrate with Red Hat Ansible Tower, configure a Webhook to send Ansible Tower notifications to Moogsoft Onprem.
See the Ansible Tower documentation for details on its components.
Before You Begin
The Ansible Tower integration has been validated with Ansible Tower v3.0 and 3.1. Before you start to set up your integration, ensure you have met the following requirements:
You have an Ansible Tower account with administrator privileges.
Ansible Tower can make requests to external endpoints over port 443.
Configure the Ansible Tower Integration
To configure the integration:
Navigate to the Integrations tab.
Click Ansible Tower in the Monitoring section.
Follow the instructions to create an integration name.
Configure Ansible Tower
Log in to Ansible Tower to configure a notification template to send event data to your system. For more help, see the Ansible Tower documentation.
Create a new notification template under 'Notifications' in Settings.
Configure the template as follows:
Field
Value
Name
Event Webhook
Description
Event notifications
Organization
Default
Type
Webhook
Target URL
<your Ansible Tower integration URL>
For example: https://example.Moogsoft.com/events/ansibletower_ansibletower1
User ID
Username generated in the Moogsoft Onprem UI
Password
Password generated in the Moogsoft Onprem UI
Encode the 'userid:password' in a Base64 encoder and enter the following under 'HTTP Headers':
{ "Content-Type": "application/json", "Authorization": "Basic <base64 encoded credentials>" }
Save the template. You can test the notification to verify if there are any issues.
Connection the notification to a job template.
After you complete the configuration, Ansible Tower notifies Moogsoft Onprem when new events occur.