Read this in other languages: English, 日本語.
Demonstrate anothe use case of Ansible Tower workflow for F5 BIG-IP.
For this exercise, we will create a workflow for server patch management, first to disable the pool members, patch the nodes, and then enable the nodes. In parallel, we also attach an iRule to virtual server, to respond to the users when servers are under maintenance.
Similar to the previous lab, we need to create the following templates by following Lab 4.1
:
NAME | Playbook |
---|---|
Disable node | disable_node.yml |
Enable node | enable_node.yml |
Patch server | patch_server.yml |
Attach iRule | attach_irule.yml |
Detach iRule | detach_irule.yml |
Again, we use the same template parameters as Lab 4.1
for each of the above templates, except for Patch server
. This template will use credential Workshop Credential
, and all other templates will be using BIGIP
Parameter | Value |
---|---|
NAME | |
JOB TYPE | Run |
INVENTORY | Workshop Inventory |
PROJECT | Workshop Project |
PLAYBOOK | |
CREDENTIALS | |
Here is one example templates configured:
Click on the Templates link on the left menu.
Click on the green button. Select the Workflow Template.
Fill out the form as follows:
Parameter | Value |
---|---|
NAME | Node maintenance workflow |
ORGANIZATION | Default |
INVENTORY | Workshop Inventory |
Click on the Save button
When you click the SAVE button, the WORKFLOW VISUALIZER should automatically open. If not click on the blue WORKFLOW VISUALIZER button.
By default only a green START button will appear. Click on the START button.
The ADD A NODE window will appear on the right.
Click the green SELECT button.
Click on the START button, again. The ADD A NODE will appear again.
Select the Attach iRule job template. For the Run parameter select Always from the drop down menu.
Click the green SELECT button.
Hover over the Disable node node and click the green + symbol. The ADD A NODE will appear again.
Select the Patch server job template. For the Run parameter select On Success from the drop down menu.
Click the green SELECT button.
Hover over the Patch server node and click the green + symbol. The ADD A NODE will appear again.
Select the Enable node job template. For the Run parameter select On Success from the drop down menu.
Click the green SELECT button.
Hover over the Enable node node and click the green + symbol. The ADD A NODE will appear again.
Select the Detach iRule job template. For the Run parameter select On Success from the drop down menu.
Click the green SELECT button.
Lastly, we create a covergence link, which allows the jobs running in parallel to converge. In another word, when both jobs finish, Detach iRule
node will trigger.
Hover over the Attach iRule to virtual server
node and click the blue chain symbol.
Now, click on the existing Detach iRule
. An ADD LINK window will appear. For the RUN parameter choose Always.
Return to the Templates window
Click the rocket ship to launch the Node maintenance workflow template.
At any time during the workflow job you can select an individual job template by clicking on the node to see the status.
With the iRule attached to virtual server, users will receive a maintenance page during the server maintenance:
You have
You have completed lab exercise 4.3
Click here to return to the Ansible Network Automation Workshop