Navigate the web UI of private automation hub and automation controller, and launch a test job.
Outcomes
Upload automation execution environments to private automation hub.
Create namespaces for automation content collections on private automation hub.
Upload automation content collections to private automation hub.
Modify existing automation controller resources.
Launch an automation controller job template.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command ensures that private automation hub and automation controller are installed.
[student@workstation ~]$ lab start install-configuration
Procedure 1.2. Instructions
Upload the three provided automation execution environments to private automation hub.
From a terminal window, change into the /home/student/certified-EEs directory.
[student@workstation ~]$ cd ~/certified-EEs/Use the skopeo login command to log in to private automation hub, using admin as the username and redhat as the password.
[student@workstation certified-EEs]$skopeo login hub.lab.example.comUsername:adminPassword:redhatLogin Succeeded!
Use the skopeo copy command to upload the compatibility, minimal, and supported automation execution environment image archives. Red Hat uses compatibility to refer to the ee-29-rhel8 automation execution environment because that execution environment contains Ansible 2.9 (a version that is compatible with many earlier playbooks). Upload the image archives to the hub.lab.example.com server using the ansible-automation-platform-22 namespace and the latest tag.
Set the HUB and AAP shell variables to reduce typing in the following skopeo commands.
[student@workstation certified-EEs]$HUB="hub.lab.example.com"[student@workstation certified-EEs]$AAP="ansible-automation-platform-22"[student@workstation certified-EEs]$skopeo copy \>docker-archive:ee-29-rhel8.tgz docker://${HUB}/${AAP}/ee-29-rhel8:latest...output omitted... [student@workstation certified-EEs]$skopeo copy \>docker-archive:ee-minimal-rhel8.tgz \>docker://${HUB}/${AAP}/ee-minimal-rhel8:latest...output omitted... [student@workstation certified-EEs]$skopeo copy \>docker-archive:ee-supported-rhel8.tgz \>docker://${HUB}/${AAP}/ee-supported-rhel8:latest...output omitted...
This example uses the skopeo command, but you can use the podman command if you prefer. Assuming that you logged in to private automation hub with the podman login command, you can upload an archive with the following commands. When not specified, the podman tag and podman push commands default to using the latest tag.
[student@workstation certified-EEs]$podman load -i ee-supported-rhel8.tgz...output omitted... [student@workstation certified-EEs]$podman tag \>registry.redhat.io/ansible-automation-platform-22/ee-supported-rhel8 \>hub.lab.example.com/ansible-automation-platform-22/ee-supported-rhel8...output omitted... [student@workstation certified-EEs]$podman push \>hub.lab.example.com/ansible-automation-platform-22/ee-supported-rhel8...output omitted...
Verify that the automation execution environments are available from private automation hub.
Navigate to https://hub.lab.example.com and log in as the admin user with redhat as the password.
Navigate to → to display the available automation execution environments.
The installer created the , , and container repositories using the container image archives included in the Ansible Automation Platform setup bundle. You created the three container repositories that use the namespace.
Click the link for the container repository and then click the tab. Private automation hub provides the container image using the tag.
Create the containers namespace and then upload the containers.podman content collection.
Navigate to → and then click .
Enter containers in the field and then click to create the namespace.
Click .
Click , select /home/student/content-collections/community/containers-podman-1.9.1.tar.gz, and then click .
Create the ansible namespace and then upload the ansible.posix content collection.
Navigate to → and then click .
Enter ansible in the field and then click to create the namespace.
Click .
Click , select the /home/student/content-collections/certified/ansible-posix-1.3.0.tar.gz archive, and then click .
Approve the uploaded content collections.
Navigate to → .
Click to approve the ansible.posix content collection.
Click to approve the containers.podman content collection.
Navigate to → and verify that private automation hub displays the and automation content collections.
Synchronize the automaton controller Demo Project project resource.
Navigate to https://controller.lab.example.com and log in as the admin user with redhat as the password.
Navigate to → to display existing project resources.
Click the icon to synchronize the resource.
Update the Demo Inventory resource to remove the localhost resource. Add the workstation.lab.example.com host to the Demo Inventory resource.
Making this change allows the Demo Inventory resource to target a machine in your environment (workstation.lab.example.com) rather than the automation execution environment (localhost).
Navigate to → to display existing inventory resources.
Click the link for the resource and then click the tab.
Select the resource and then click . Confirm your decision to delete the resource.
Click . Enter workstation.lab.example.com in the field and then click .
Update the Demo Credential machine credential resource so that it uses valid credentials for accessing the workstation.lab.example.com host.
Navigate to → to display existing credentials.
Locate the resource and click the icon for that row.
Enter student in the field, enter student in the field, and then click .
If you previously completed this exercise, then click the icon to enter a new password.
Launch the Demo Job Template job.
Navigate to → to display existing templates.
Click the icon to initiate the job. The Demo Job Template resource uses the Demo Credential machine credential resource to connect to the workstation.lab.example.com host in the Demo Inventory resource.