3.3. Life Cycle Environments

Figure 3.2. An Environment Path Containing Four Environments
3.3.1. Creating Life Cycle Environments
Procedure 3.10. To Create a Life Cycle Environment:
- Select an organization from the menu in the top left hand corner.
- Click
and then click New Environment Path. - Insert a name and a label (automatically fills in the Name field input) for the life cycle environment. The Description field is optional.
- Click Save to create the environment.
3.3.2. Adding Life Cycle Environments to a Red Hat Satellite Capsule Server
Important
hammer
commands on the Satellite Server.
Procedure 3.11. To Add Environments to the Satellite Capsule Server:
- Log in to the Satellite Server CLI as root.
- Choose the desired Red Hat Satellite Capsule Server from the list and take note of its
id
:hammer capsule list
# hammer capsule list
Copy to Clipboard Copied! The Satellite Capsule Server's details can be verified using the command:hammer capsule info --id capsule_id_number
# hammer capsule info --id capsule_id_number
Copy to Clipboard Copied! - Verify the list of life cycle environments available for the Red Hat Capsule Server and note down the
environment id
:hammer capsule content available-lifecycle-environments --id capsule_id_number
# hammer capsule content available-lifecycle-environments --id capsule_id_number
Copy to Clipboard Copied! Where:available-lifecycle-environments
are life cycle environments that are available to the Satellite Capsule but are currently not attached to the Satellite Capsule.
- Add the life cycle environment to the Satellite Capsule Server:
hammer capsule content add-lifecycle-environment --id capsule_id_number --environment-id environment_id_number
# hammer capsule content add-lifecycle-environment --id capsule_id_number --environment-id environment_id_number
Copy to Clipboard Copied! Where:- capsule_id_number stands for the Satellite Capsule Server's identification number.
- environment_id_number stands for the life cycle environment's identification number.
Repeat this step for every life cycle environment to be added to the Capsule Server. - Synchronize the content from the Satellite Server's environment to the Satellite Capsule Server:
hammer capsule content synchronize --id capsule_id_number
# hammer capsule content synchronize --id capsule_id_number
Copy to Clipboard Copied! When an external Satellite Capsule Server has various life cycle environments, and only one life cycle environment needs to be synchronized, it is possible to target a specific environment by specifying the environment identification number:hammer capsule content synchronize --id external_capsule_id_number --environment-id environment_id_number
# hammer capsule content synchronize --id external_capsule_id_number --environment-id environment_id_number
Copy to Clipboard Copied!
3.3.3. Promoting Content Views
Procedure 3.12. To Promote a Content View:
- On the main menu, click
. - In the Name column, click the name of the Content View that you want to promote.
- On the Versions tab, identify the latest version, and click .
- Identify the promotion path where you want to promote the Content View, select the appropriate life cycle environment, and click.
- After the promotion has completed, the Versions tab updates to display the new status of your Content Views.
3.3.4. Removing Life Cycle Environments From Satellite Server
Procedure 3.13. To Remove a Life Cycle Environment:
- On the main menu, click
. - Click the name of the life cycle environment that you want to remove, and then click.
- In the confirmation dialog box, clickto remove the environment.
Note
3.3.5. Removing Life Cycle Environments from Capsule Server
- When life cycle environments are no longer relevant to the host systems
- When life cycle environments have been incorrectly added to Capsule Server
Procedure 3.14. To remove a life cycle environment from Capsule Server:
- Log in to the Satellite Server CLI as the root user.
- Choose the desired Capsule Server from the list and take note of its
id
:hammer capsule list
# hammer capsule list
Copy to Clipboard Copied! The Capsule Server's details can be verified using the command:hammer capsule info --id capsule_id_number
# hammer capsule info --id capsule_id_number
Copy to Clipboard Copied! - Verify the list of life cycle environments currently attached to the Capsule Server and take note of the
environment id
:hammer capsule content lifecycle-environments --id capsule_id_number
# hammer capsule content lifecycle-environments --id capsule_id_number
Copy to Clipboard Copied! - Remove the life cycle environment from Capsule Server:
hammer capsule content remove-lifecycle-environment --id capsule_id_number --environment-id environment_id
# hammer capsule content remove-lifecycle-environment --id capsule_id_number --environment-id environment_id
Copy to Clipboard Copied! Where:- capsule_id_number is Capsule Server's identification number.
- environment_id is the life cycle environment's identification number.
Repeat this step for every life cycle environment to be removed from the Capsule Server. - Synchronize the content from the Satellite Server's environment to Capsule Server:
hammer capsule content synchronize --id capsule_id_number
# hammer capsule content synchronize --id capsule_id_number
Copy to Clipboard Copied!