Skip to main contentIBM Β AIOps Training

Configure Runbooks

In this section you will create the connection to Ansible Tower and create your first Runbook.

πŸš€ TASK: Create the Ansible Tower Connection

🌏 Documentation for the Task: Ansible automation provider

Create the connection to Ansible Tower using the following parameters:

URL for REST API: from MY_CONFIGURATION.txt
Authentication type: User ID/Password
User: admin
Password: from MY_CONFIGURATION.txt
    1. In the CP4AIOPS β€œHamburger” Menu select Define/Data and tool connections

    2. Click Add connection

    3. Under Ansible Automation Controller, click on Add connection

    4. Click Connect

    5. πŸ”Ž Get the data from your configuration file MY_CONFIGURATION.txt - section 2.3 Configure Runbooks - Ansible Automation Controller

      ./tools/11_practicum/get_configuration_info.sh > MY_CONFIGURATION.txt
    6. Fill out the fields:

      image
      URL for REST API: from MY_CONFIGURATION.txt
      Authentication type: User ID/Password
      User: admin
      Password: from MY_CONFIGURATION.txt
    7. Click Done

    8. Make sure that the Connection Status turn green after a few seconds

    Check integration

    1. In the CP4AIOPS β€œHamburger” Menu select Operate/Automations

    2. Select tab Actions

    3. Verify that the Ansible Playbooks have been imported

      image

πŸš€ TASK: Create a runbook

🌏 Documentation for the Task: Creating a runbook

Create a Runbook based on the CP4AIOPS Mitigate Robotshop Ratings Outage Ansible Playbook.

    1. Select tab Runbooks

    2. Click Create Runbook

    3. Name it RobotShop Mitigate MySQL Problem

    4. Click Add automated step

    5. Select CP4AIOPS Mitigate Robotshop Ratings Outage

    6. Click Select this action

    7. Click Mapping / Select

    8. Select New runbook parameter

      image
    9. Select tab

    10. πŸ”Ž Get the data from your configuration file MY_CONFIGURATION.txt - section 2.4 Configure Runbooks - Runbook Parameters

      ./tools/11_practicum/get_configuration_info.sh > MY_CONFIGURATION.txt
      image
    11. Replace PROVIDE: my_k8s_apiurl and my_k8s_apikey in field Default value (optional) with the πŸ—ΊοΈ Value from the script

    12. Click Save

    13. Click Save again

    14. Click Actions and Publish

Page last updated: 03 November 2022