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 providerCreate the connection to Ansible Tower using the following parameters:
URL for REST API: from MY_CONFIGURATION.txtAuthentication type: User ID/PasswordUser: adminPassword: from MY_CONFIGURATION.txt
In the
CP4AIOPS
βHamburgerβ Menu selectDefine
/Data and tool connections
Click
Add connection
Under
Ansible Automation Controller
, click onAdd connection
Click
Connect
π 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.txtFill out the fields:
URL for REST API: from MY_CONFIGURATION.txtAuthentication type: User ID/PasswordUser: adminPassword: from MY_CONFIGURATION.txtClick
Done
Make sure that the Connection Status turn green after a few seconds
Check integration
In the
CP4AIOPS
βHamburgerβ Menu selectOperate
/Automations
Select tab
Actions
Verify that the Ansible Playbooks have been imported
π TASK: Create a runbook
π Documentation for the Task: Creating a runbookCreate a Runbook based on the CP4AIOPS Mitigate Robotshop Ratings Outage
Ansible Playbook.
Select tab
Runbooks
Click
Create Runbook
Name it
RobotShop Mitigate MySQL Problem
Click
Add automated step
Select
CP4AIOPS Mitigate Robotshop Ratings Outage
Click
Select this action
Click
Mapping
/Select
Select
New runbook parameter
Select tab
π Get the data from your configuration file
MY_CONFIGURATION.txt
- section2.4 Configure Runbooks - Runbook Parameters
./tools/11_practicum/get_configuration_info.sh > MY_CONFIGURATION.txtReplace
PROVIDE: my_k8s_apiurl and my_k8s_apikey
in fieldDefault value (optional)
with the πΊοΈ Value from the scriptClick
Save
Click
Save
againClick
Actions
andPublish