Preparing client platforms
You have to configure the platforms that you will provision. That entails creating a hardware model, CPU architecture, and operating system.
Creating an operating system for Ubuntu 24.04
Create an operating system in orcharhino to provision hosts running Ubuntu 24.04. This example creates an operating system entry for Ubuntu 24.04.
|
You can use a script to add operating system entries to your orcharhino Server. On your orcharhino Server, uncomment the operating systems and orcharhino Client for Ubuntu that you want to add in |
-
In the orcharhino management UI, navigate to Hosts > Provisioning Setup > Operating Systems.
-
Click Create Operating System to create an operating system entry for Ubuntu.
-
Enter
Ubuntu 24.04as Name for the operating system. Choose a name as reported by Ansible, Puppet, or Salt as fact. -
Set the Major Version to
24.04. -
Leave the Minor Version field empty.
-
Set the Release Name to
noblefor Ubuntu 24.04. -
On the Partition Table tab, select the
Preseedpartition table.For more information, see Creating partition tables.
-
On the Templates tab, select the
Preseed Finishtemplate as Finish template, thePreseedtemplate as Provisioning Template, and thePreseed PXELinuxtemplate as PXELinux template. -
On the Parameters tab, add the
or_client_repo_urlparameter, select the string type, and enter the valuehttp://orcharhino.example.com/pulp/content/_My_Organization_/Library/custom/ubuntu_Client/ubuntu_Client_ubuntu/.If you want to provision hosts through orcharhino Proxy Servers, you have to use the
or_client_repo_pathparameter containing the Published At path of your content on orcharhino Server. orcharhino Proxy Server will add the FQDN of your orcharhino Proxy Server to generate the URL based on the content source setting of your host. -
Click Submit to save the operating system entry for Ubuntu.
Updating the details of multiple operating systems
Use this procedure to update the details of multiple operating systems.
This example shows you how to assign each operating system a partition table called Preseed default, a configuration template called Preseed default PXELinux, and a provisioning template called Preseed Default.
-
On orcharhino Server, run the following Bash script:
PARTID=$(hammer --csv partition-table list | grep "Preseed default," | cut -d, -f1) PXEID=$(hammer --csv template list --per-page=1000 | grep "Preseed default PXELinux" | cut -d, -f1) ORCHARHINO_ID=$(hammer --csv template list --per-page=1000 | grep "provision" | grep ",Preseed default" | cut -d, -f1) for i in $(hammer --no-headers --csv os list | awk -F, {'print $1'}) do hammer partition-table add-operatingsystem --id="${PARTID}" --operatingsystem-id="${i}" hammer template add-operatingsystem --id="${PXEID}" --operatingsystem-id="${i}" hammer os set-default-template --id="${i}" --config-template-id=${PXEID} hammer os add-config-template --id="${i}" --config-template-id=${ORCHARHINO_ID} hammer os set-default-template --id="${i}" --config-template-id=${ORCHARHINO_ID} done -
Display information about the updated operating system to verify that the operating system is updated correctly:
$ hammer os info --id 1
Creating architectures
An architecture in orcharhino represents a logical grouping of hosts and operating systems. Architectures are created by orcharhino automatically when hosts check in with Puppet. The x86_64 architecture is already preset in orcharhino.
Use this procedure to create an architecture in orcharhino.
-
In the orcharhino management UI, navigate to Hosts > Provisioning Setup > Architectures.
-
Click Create Architecture.
-
In the Name field, enter a name for the architecture.
-
From the Operating Systems list, select an operating system. If none are available, you can create and assign them under Hosts > Provisioning Setup > Operating Systems.
-
Click Submit.
-
Enter the
hammer architecture createcommand to create an architecture. Specify its name and operating systems that include this architecture:$ hammer architecture create \ --name "My_Architecture" \ --operatingsystems "My_Operating_System"
Creating hardware models
Use this procedure to create a hardware model in orcharhino so that you can specify which hardware model a host uses.
-
In the orcharhino management UI, navigate to Hosts > Provisioning Setup > Hardware Models.
-
Click Create Model.
-
In the Name field, enter a name for the hardware model.
-
Optionally, in the Hardware Model and Vendor Class fields, you can enter corresponding information for your system.
-
In the Info field, enter a description of the hardware model.
-
Click Submit to save your hardware model.
-
Create a hardware model using the
hammer model createcommand. The only required parameter is--name. Optionally, enter the hardware model with the--hardware-modeloption, a vendor class with the--vendor-classoption, and a description with the--infooption:$ hammer model create \ --hardware-model "My_Hardware_Model" \ --info "My_Description" \ --name "My_Hardware_Model_Name" \ --vendor-class "My_Vendor_Class"
Creating compute profiles
You can use compute profiles to predefine virtual machine hardware details such as CPUs, memory, and storage.
To use the CLI instead of the orcharhino management UI, see the CLI procedure.
A default installation of orcharhino contains three predefined profiles:
-
1-Small -
2-Medium -
3-Large
You can apply compute profiles to all supported compute resources:
-
In the orcharhino management UI, navigate to Infrastructure > Compute Profiles and click Create Compute Profile.
-
In the Name field, enter a name for the profile.
-
Click Submit. A new window opens with the name of the compute profile.
-
In the new window, click the name of each compute resource and edit the attributes you want to set for this compute profile.
-
Create a new compute profile:
$ hammer compute-profile create --name "My_Compute_Profile" -
Set attributes for the compute profile:
$ hammer compute-profile values create \ --compute-attributes "flavor=m1.small,cpus=2,memory=4GB,cpu_mode=default \ --compute-resource "My_Compute_Resource" \ --compute-profile "My_Compute_Profile" \ --volume size=40GB -
Optional: To update the attributes of a compute profile, specify the attributes you want to change. For example, to change the number of CPUs and memory size:
$ hammer compute-profile values update \ --compute-resource "My_Compute_Resource" \ --compute-profile "My_Compute_Profile" \ --attributes "cpus=2,memory=4GB" \ --interface "type=network,bridge=br1,index=1" \ --volume "size=40GB" -
Optional: To change the name of the compute profile, use the
--new-nameattribute:$ hammer compute-profile update \ --name "My_Compute_Profile" \ --new-name "My_New_Compute_Profile"
-
For more information about creating compute profiles by using Hammer, enter
hammer compute-profile --help.
Installing katello-host-tools-tracer Manually
The katello-host-tools package is responsible for the connection between managed hosts and content from orcharhino Server and orcharhino Proxies.
It uploads currently used repositories and installed packages to orcharhino.
The katello-host-tools-tracer package signals orcharhino if services such as nginx have to be restarted or the managed host itself has to be rebooted after updating packages such as the Linux Kernel.
-
In the orcharhino management UI, navigate to Monitor > Jobs.
-
Click Run Job.
-
In the Job category drop down menu, select
Commands. -
In the Job template drop down menu, select
Run Command - SSH Default. -
In the Search Query field, filter your managed hosts, for example all hosts running Ubuntu:
os = UbuntuAlternatively, you can also filter for specific hosts using
name = my-host.example.com. -
In the Command field, enter the command to install the
katello-host-tools-tracerpackage:$ apt install -y katello-host-tools-tracer -
Click Submit to install the package.
|
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"). |