Launch jobs from your controllers, observe them running on your execution nodes, and make adjustments to your automation mesh.
Outcomes
Create instance groups and associate execution nodes with instance groups.
Configure inventories to use an instance group.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command ensures that automation mesh is installed. If automation mesh is not installed, then you must complete the previous exercise or run the lab start mesh-deploy-solve command prior to running the lab command for this exercise.
[student@workstation ~]$ lab start mesh-manage
Procedure 11.2. Instructions
Create the Development Datacenter instance group and add the exec1.lab.example.com and exec2.lab.example.com hosts to it.
Navigate to https://controller.lab.example.com and log in as the admin user with redhat as the password.
As an alternative, navigate to https://control2.lab.example.com and log in as the admin user with redhat as the password. Because both controller.lab.example.com and control2.lab.example.com are control nodes using a shared database, you can complete this exercise from either host.
Navigate to → and then click → .
Create the instance group using Development Datacenter as the name and then click .
Click the tab and then click .
Select the and hosts and then click .
Create the Production Datacenter instance group and add the exec3.lab.example.com host to it.
Navigate to → and then click → .
Create the instance group using Production Datacenter as the name and then click .
Click the tab and then click .
Select the host and then click .
Update the Dev inventory to use the Development Datacenter instance group.
Navigate to → and then click the icon for the Dev inventory.
Click the search icon for the field, select the instance group, and then click .
Click .
Update the Prod inventory to use the Production Datacenter instance group.
Navigate to → and then click the icon for the Prod inventory.
Click the search icon for the field, select the instance group, and then click .
Click .
Launch the Deploy MOTD job template and select the Dev inventory. Identify the instance group and execution node used by the job.
Navigate to → and click the icon for the Deploy MOTD job template.
Select the inventory and then click .
Click to use the default answer to the survey question, and then click .
After the job completes, click the tab. The job used the instance group and used either the or execution node.
Be patient because it might take more than 30 seconds for the job to complete.
Launch the Deploy MOTD job template and select the Prod inventory. Observe how jobs that use the Prod inventory use the Production Datacenter instance group and the exec3.lab.example.com execution node.
Navigate to → and click the icon for the Deploy MOTD job template.
Select the inventory and click .
Use Production push as the answer to the survey question and then click .
Click .
After the job completes, click the tab. The job used the instance group and the execution node.
Be patient because it might take more than 30 seconds for the job to complete.
View the message of the day for hosts in the Dev and Prod inventories. The date stamps in the output of your commands differs from the example output shown in the following instructions.
Display the message of the day for hosts in the Dev inventory. Connect to servera.lab.example.com, notice the message of the day, and then disconnect from the server.
[student@workstation ~]$ssh student@servera.lab.example.com2022-05-25:Nothing new to report....output omitted... [student@servera ~]$exitlogout Connection to servera.lab.example.com closed.
Connect to serverb.lab.example.com, notice the message of the day, and then disconnect from the server.
[student@workstation ~]$ssh student@serverb.lab.example.com2022-05-25:Nothing new to report....output omitted... [student@serverb ~]$exitlogout Connection to serverb.lab.example.com closed.
Display the message of the day for hosts in the Prod inventory. Connect to servere.lab.example.com, notice the message of the day, and then disconnect from the server.
[student@workstation ~]$ssh student@servere.lab.example.com2022-05-25:Production push...output omitted... [student@servere ~]$exitlogout Connection to servere.lab.example.com closed.
Connect to serverf.lab.example.com, notice the message of the day, and then disconnect from the server.
[student@workstation ~]$ssh student@serverf.lab.example.com2022-05-25:Production push...output omitted... [student@serverf ~]$exitlogout Connection to serverf.lab.example.com closed.