Create an environment path with several lifecycle environments that represent different stages of a software development and deployment workflow.
Outcomes
Create a lifecycle environment path for each of the Operations and Marketing organizations with lifecycle environments named Development, QA, and Production.
Log in to workstation as student with student as the password.
Run the lab lifecycles-define start command to prepare your system for the exercise.
This command determines whether the satellite host is operational, and verifies that the required resources exist.
[student@workstation ~]$ lab start lifecycles-create
Instructions
Log in to the Satellite Server web UI, https://satellite.lab.example.com, as admin with redhat as the password.
In the upper-left corner of the web page, verify that the Operations organization context is set.
Click → and then click . The page is displayed.
Create Development as the first environment in an environment path.
Enter Development in the field.
The field is automatically populated from the field value, and replaces spaces or special characters with underscores if necessary.
Enter Development in the field, and click to create the first environment in this path.
Create the QA environment as an additional environment in the same lifecycle environment path as the Development environment.
Click to display the page.
Enter QA in the field.
Enter Quality Assurance in the field.
Select for the field, and then click to create the environment.
Use the hammer command to create the Production environment in the Operations organization as another environment in the same lifecycle environment path as Development and QA.
On workstation, log in to the satellite system as the student user and switch to the root user
[student@workstation ~]$ssh student@satellite[student@satellite ~]$sudo -i[sudo] password for student:student[root@satellite ~]#
List the lifecycle environments in the Operations organization.
[root@satellite ~]# hammer lifecycle-environment list --organization Operations
---|-------------|------------
ID | NAME | PRIOR
---|-------------|------------
3 | Development | Library
2 | Library |
4 | QA | Development
---|-------------|------------Create the Production lifecycle environment in the Operations organization.
Verify that the Production environment follows the QA environment.
[root@satellite ~]# hammer lifecycle-environment create \
--organization Operations --name Production --label Production \
--description Production --prior QA
Environment created.View the lifecycle environment paths in the Operations organization.
[root@satellite ~]# hammer lifecycle-environment paths --organization Operations
------------------------------------------
LIFECYCLE PATH
------------------------------------------
Library >> Development >> QA >> Production
------------------------------------------Use the hammer command to create an environment path for the Marketing organization, to contain the Development, QA, and Production environments.
List the lifecycle environments in the Marketing organization.
[root@satellite ~]# hammer lifecycle-environment list --organization Marketing
---|-------------|------------
ID | NAME | PRIOR
---|-------------|------------
7 | Library |
---|-------------|------------Create the Development lifecycle environment in the Marketing organization.
To begin a unique environment path, you must create the initial environment to follow the Library environment.
[root@satellite ~]# hammer lifecycle-environment create \
--organization Marketing --name Development --label Development \
--description Development --prior Library
Environment created.Create the QA and Production lifecycle environments in the Marketing organization.
Verify that the QA environment follows the Development environment, and that the Production environment follows the QA environment.
[root@satellite ~]# hammer lifecycle-environment create \
--organization Marketing --name QA --label QA \
--description "Quality Assurance" --prior Development
Environment created.[root@satellite ~]# hammer lifecycle-environment create \
--organization Marketing --name Production --label Production \
--description Production --prior QA
Environment created.View the lifecycle environment paths in the Marketing organization.
[root@satellite ~]# hammer lifecycle-environment paths --organization Marketing
------------------------------------------
LIFECYCLE PATH
------------------------------------------
Library >> Development >> QA >> Production
------------------------------------------Return to the workstation system as the student user.
[root@satellite ~]#exitlogout [student@satellite ~]$exitlogout Connection to satellite closed. [student@workstation ~]$