Create users on automation controller and private automation hub and assign the users access permissions as specified by the lab instructions.
Outcomes
Create users in automation controller and in private automation hub.
Create teams in automation controller and groups in private automation hub.
Add users to automation controller teams and private automation hub groups.
Assign team roles to automation controller users and permissions to private automation hub groups.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command ensures that automation controller and private automation hub are installed.
[student@workstation ~]$ lab start org-review
Procedure 2.4. Instructions
Navigate to https://controller.lab.example.com and log in as the admin user with redhat as the password.
Add two automation controller users with the following information:
| Field | Value for the first user | Value for the second user |
|---|---|---|
Oliver
|
Ophelia
| |
Stone
|
Dunham
| |
oliver@lab.example.com
|
ophelia@lab.example.com
| |
oliver
|
ophelia
| |
redhat123
|
redhat123
| |
redhat123
|
redhat123
| |
Navigate to → and then click . Create the oliver user with the following information. When finished, click to create the new user.
| Field | Value |
|---|---|
Oliver
| |
Stone
| |
oliver@lab.example.com
| |
oliver
| |
redhat123
| |
redhat123
| |
Navigate to → and then click . Create the ophelia user with the following information. When finished, click to create the new user.
| Field | Value |
|---|---|
Ophelia
| |
Dunham
| |
ophelia@lab.example.com
| |
ophelia
| |
redhat123
| |
redhat123
| |
Create an automation controller team called Operations using Ops Team as the description. The new team must belong to the Default organization.
Add Oliver as a Member to the Operations team.
Add Ophelia as an Admin to the Operations team.
Add a private automation hub group called Container Developers. Assign all of the permissions in the Containers category to the new Container Developers group.
Navigate to https://hub.lab.example.com and log in as the admin user with redhat as the password.
Navigate to → and then click . Enter Container Developers in the field and then click to create the new group.
Click . Add all of the permissions in the category and then click .
Add a private automation hub user using the information in the following table. When finished, log out of the private automation hub web UI.
| Field | Value |
|---|---|
carlos
| |
Carlos
| |
Cortez
| |
carlos@lab.example.com
| |
redhat123
| |
redhat123
| |
From a terminal window, use the skopeo command to identify the version and release of the private automation hub ansible-automation-platform-22/ee-supported-rhel8:latest container image.
To do this, access the container repository on hub.lab.example.com as the newly created carlos user.
Use the skopeo login command to log in to private automation hub as carlos using redhat123 as the password.
[student@workstation ~]$skopeo login hub.lab.example.comUsername:carlosPassword:redhat123Login Succeeded!
If running the skopeo login command produces a message indicating that you are already logged in, then run the skopeo logout hub.lab.example.com command and then attempt to log in again as the carlos user.
Reduce the amount of typing in the following skopeo commands by setting a variable:
[student@workstation ~]$ REPO=ansible-automation-platform-22/ee-supported-rhel8Use the skopeo inspect command to display information about the ansible-automation-platform-22/ee-supported-rhel8:latest container image on private automation hub. Use the --format "{{ .Labels.version }}-{{ .Labels.release }}" option to only display the version and release of the container image.
[student@workstation ~]$skopeo inspect docker://hub.lab.example.com/${REPO} \>--format "{{ .Labels.version }}-{{ .Labels.release }}"1.0.0-99
When not specified, container images default to using the latest tag.
Using the private automation hub web UI, add a new tag to the ansible-automation-platform-22/ee-supported-rhel8:latest container image. Use information about the version and release of the container image obtained in the previous step to create the tag using the format of "VERSION-RELEASE". For example, the ansible-automation-platform-22/ee-29-rhel8:latest container image would use the 1.0.0-119 tag, where 1.0.0 is the version, and 119 is the release.
Navigate to → and then click the link for the container repository.
From the tab, click the vertical ellipsis icon and select . Add the 1.0.0-99 tag to , save your changes, and close the window.
Navigate to → to exit the private automation hub web UI.
Instead of using the private automation hub web UI, you could add the 1.0.0-99 container image tag by using the skopeo copy command:
[student@workstation ~]$skopeo copy docker://hub.lab.example.com/${REPO} \>docker://hub.lab.example.com/${REPO}:1.0.0-99...output omitted...
Use the skopeo list-tags command to verify that the ansible-automation-platform-22/ee-supported-rhel8 container repository uses the 1.0.0-99 tag.