Configuring host collections
To group hosts and perform the same action on them at once, you can use host collections. Available actions include managing packages, applying errata, or assigning content view environments. Group hosts in a way that suits your workflow, such as by function, department, or business unit.
You can assign host collections to activation keys to ensure that newly provisioned or registered hosts become automatically part of your host collection during the registration to orcharhino.
Creating a host collection by using orcharhino management UI
You can create a host collection from the orcharhino management UI to group hosts and perform bulk actions such as package updates or errata installation.
-
Your user account has a role that grants the
create_host_collectionspermission.
-
In the orcharhino management UI, navigate to Hosts > Host Collections.
-
Click New Host Collection.
-
Add the Name of the host collection.
-
Clear Unlimited Hosts, and enter the desired maximum number of hosts in the Limit field.
-
Add the Description of the host collection.
-
Click Save.
Creating a host collection by using Hammer CLI
You can create a host collection by using Hammer CLI to group hosts and perform bulk actions such as package updates or errata installation.
-
Create a host collection:
$ hammer host-collection create \ --name "My_Host_Collection" \ --organization "My_Organization"
Cloning a host collection
You can clone a host collection to create a new collection with the same settings and membership, then adjust it as needed.
-
In the orcharhino management UI, navigate to Hosts > Host Collections.
-
On the left hand panel, click the host collection you want to clone.
-
Click Copy Collection.
-
Specify a name for the cloned collection.
-
Click Create.
Removing a host collection
You can remove a host collection from orcharhino when you no longer need that grouping. The hosts in the collection are not deleted.
-
In the orcharhino management UI, navigate to Hosts > Host Collections.
-
Select the host collection that you want to remove.
-
Under Select Action, click Remove.
-
Click Delete to remove the host collection.
Adding a host to a host collection by using orcharhino management UI
You can add a host to a host collection from the orcharhino management UI.
Note that if you add a host to a host collection, the orcharhino auditing system does not log the change.
-
A host must be registered to orcharhino to add it to a Host Collection. For more information about registering hosts, see Registering hosts by using global registration.
-
In the orcharhino management UI, navigate to Hosts > All Hosts.
-
Click the name of the host you want to modify.
-
In the Host collections card, open the options menu and select Add host to collections.
-
Select the host collection.
-
Click Add.
Adding a host to a host collection by using Hammer CLI
You can add a host to a host collection by using Hammer CLI.
Note that if you add a host to a host collection, the orcharhino auditing system does not log the change.
-
A host must be registered to orcharhino to add it to a Host Collection. For more information about registering hosts, see Registering hosts by using global registration.
-
Add a host to your host collection:
$ hammer host-collection add-host \ --host-ids My_Host_ID \ --id My_Host_Collection_ID
Adding hosts to a host collection in bulk by using orcharhino management UI
You can add multiple hosts to a host collection at once from the orcharhino management UI.
Note that if you add a host to a host collection, the orcharhino auditing system does not log the change.
-
A host must be registered to orcharhino to add it to a host collection. For more information about registering hosts, see Registering hosts by using global registration.
-
In the orcharhino management UI, navigate to Hosts > Host Collections.
-
Select the host collection where the host should be added.
-
On the Hosts tab, select the Add subtab.
-
Select the hosts to be added from the table and click Add Selected.
Adding hosts to a host collection in bulk by using Hammer CLI
You can add multiple hosts to a host collection at once by using Hammer CLI.
Note that if you add a host to a host collection, the orcharhino auditing system does not log the change.
-
A host must be registered to orcharhino to add it to a host collection. For more information about registering hosts, see Registering hosts by using global registration.
-
Add multiple hosts to a host collection:
$ hammer host-collection add-host \ --host-ids My_Host_ID_1,My_Host_ID_2 \ --id My_Host_Collection_ID
Removing a host from a host collection
Remove hosts from a host collection to update membership without deleting the host from orcharhino.
Note that if you remove a host from a host collection, the host collection record in the database is not modified so the orcharhino auditing system does not log the change.
-
In the orcharhino management UI, navigate to Hosts > Host Collections.
-
Choose the desired host collection.
-
On the Hosts tab, select the List/Remove subtab.
-
Select the hosts you want to remove from the host collection and click Remove Selected.
Managing host content with host collections
You can use host collections in orcharhino to install packages, apply errata, or manage other content across all hosts in the collection.
Installing packages on hosts in a host collection
You can install packages on all hosts in a host collection in one action.
-
The packages or package groups you want to install should be available in one of the existing repositories or added before this procedure.
-
Content should be promoted to the environment where the hosts are assigned.
-
In the orcharhino management UI, navigate to Hosts > Host Collections.
-
Select the host collection on which you want to install the package.
-
On the Collection Actions tab, click Package Installation, Removal, and Update.
-
To update all packages, click Update All Packages to use the default method. Alternatively, select the drop-down icon to the right of the button to select a method to use. Selecting the via remote execution – customize first menu entry will take you to the Job invocation page where you can customize the action.
-
Select the Package or Package Group radio button as required.
-
In the field provided, specify the package or package group name. Then click:
-
Install – to install a new package using the default method. Alternatively, select the drop-down icon to the right of the button and select a method to use. Selecting the via remote execution – customize first menu entry will take you to the Job invocation page where you can customize the action.
-
Update – to update an existing package in the host collection using the default method. Alternatively, select the drop-down icon to the right of the button and select a method to use. Selecting the via remote execution – customize first menu entry will take you to the Job invocation page where you can customize the action.
-
Viewing installed packages
You can view the installed packages on a host to see what is present or to plan package or errata actions.
-
In the orcharhino management UI, navigate to Hosts > All Hosts.
-
Select the name of the host.
-
On the Content tab, Packages displays a list of installed packages.
-
To see details of a package, select that package.
-
The Details tab displays details of the selected package.
-
The Files tab lists the files contained in the package.
-
The Dependencies tab lists the dependencies of the package.
-
The Repositories tab lists the repositories that contain the selected package.
-
-
You can filter these by Library or Default organization.
Upgrading a package
You can upgrade an installed package on a host to a newer version from the orcharhino management UI to get bug fixes or new features.
-
In the orcharhino management UI, navigate to Hosts > All Hosts and select the name of the host that contains the package you want to upgrade.
-
On the Content tab, select Packages.
The Status column displays whether the package is upgradeable or Up-to date. You cannot update an up-to-date package.
-
From the list of packages, choose the package you want to upgrade and click the options icon at the end of the line.
-
Choose the Apply via Remote Execution to use Remote Execution, or Apply via customized remote execution if you want to customize the remote execution, for example, to set a time when it should be applied.
-
Click Submit to upgrade the package.
Removing a package from a host
To uninstall software or resolve dependency issues, you can remove a package from a host.
-
In the orcharhino management UI, navigate to Hosts > All Hosts.
-
Select the host containing the package you want to remove.
-
On the Content tab, select Packages.
-
Click the options icon at the end of the line for the package you want to remove, and click Remove.
-
Click Submit.
Installing errata on hosts in a host collection
You can install errata on all hosts in a host collection in one action using remote execution.
-
Requirements for errata installation on hosts are met. For more information, see Prerequisites for installing errata on hosts.
-
In the orcharhino management UI, navigate to Hosts > Host Collections.
-
Select the host collection where the errata should be installed.
-
On the Collection Actions tab, click Errata Installation.
-
Select the errata you want to install on the hosts in the collection and click Install Selected to use the default method. Alternatively, select the drop-down icon to the right of the button to select a method to use. Selecting the via remote execution – customize first menu entry takes you to the Job invocation page where you can customize the action.
Removing content from hosts in a host collection
Remove packages or package groups from hosts in a host collection to keep collection content in sync with your requirements.
-
Click Hosts > Host Collections.
-
Click the host collection where the package should be removed.
-
On the Collection Actions tab, click Package Installation, Removal, and Update.
-
Select the Package or Package Group radio button as required.
-
In the field provided, specify the package or package group name.
-
Click Remove to remove the package or package group using the default method. Alternatively, select the drop-down icon to the right of the button and select a method to use. Selecting the via remote execution - customize first menu entry will take you to the Job invocation page where you can customize the action.
Changing the lifecycle environment or content view of a host collection
You can change the lifecycle environment or content view assigned to a host collection so that all hosts in the host collection consume content from the new lifecycle environment or content view.
-
In the orcharhino management UI, navigate to Hosts > Host Collection.
-
Selection the host collection where the lifecycle environment or content view should be changed.
-
On the Collection Actions tab, click Change assigned Lifecycle Environment or Content View.
-
Select the lifecycle environment to be assigned to the host collection.
-
Select the required content view from the list.
-
Click Assign.
The changes take effect in approximately 4 hours. To make the changes take effect immediately, on the host, enter the following command:
$ subscription-manager refresh
You can use remote execution to run this command on multiple hosts at the same time.
|
The text and illustrations on this page are licensed by ATIX AG under a Creative Commons Attribution Share Alike 4.0 International ("CC BY-SA 4.0") license. This page also contains text from the official Foreman documentation which uses the same license ("CC BY-SA 4.0"). |