Liberate Formula
The liberate formula migrates systems from EL clients such as CentOS 7 or Red Hat Enterprise Linux 9 to SUSE Liberty Linux. With this formula the conversion will take place during the client onboarding on Uyuni.
|
The Liberate Formula comes preinstalled within the server container. |
1. Configure Uyuni
To provide all the software channels for SUSE Liberty Linux on the Uyuni Server, proceed as follows.
Sign in to SUSE Customer Center at https://scc.suse.com.
Navigate to
My Organization, and select your organization.Navigate to and take note of your organization username and password.
In the Uyuni Web UI, navigate to to add the credentials to your Uyuni Server.
Click Add new credential, and enter the SUSE Customer Center username and password noted in a previous step.
In the Uyuni Web UI, navigate to
Select the SUSE Liberty Linux Channels that you will use:
EL7 LTSS:
SUSE Linux Enterprise Server with Expanded Support LTSS 7 x86_64EL7:
SUSE Linux Enterprise Server with Expanded Support 7 x86_64EL8:
RHEL or SLES ES or CentOS 8 BaseEL9:
RHEL and Liberty 9 BaseClick the top right button Add products.
Initial sychronization can take considerable time. You can check progress by accessing the server machine via SSH and monitoring the logs using:
tail -f /var/log/rhn/reposync/*
In the Uyuni Web UI, navigate to , and click the top right button Create key.
In the
Activation Keydialog, set the fields:
- Description
Enter some text describing the activation key.
- Key
Enter the identifier of the key. For example [literal`sll9-default` for EL 9 systems. Note: Keys will have a numeric prefix depending on the organization, so that they are unique.
- Usage
Leave blank.
- Base Channel
Select one base channel:
EL7 LTSS:
RES-7-LTSS-Updates for x86_64EL7:
RHEL x86_64 Server 7EL8:
RHEL8-Pool for x86_64EL9:
EL9-Pool for x86_64- Child Channel
Include all child channels.
- Add-On system type
Leave all blank.
- Contact Method
Default
- Universal Default
Leave unchecked.
Click Create Activation Key.
2. Add Liberate formula and assign it to activation keys
When installed, the formula can be assigned to an Activation Key by creating a System Group.
In the Uyuni Web UI, navigate to , and click the Create Group button in top right corner.
In the dialog, fill in the following data:
- Name
Liberate
- Description
Systems to be converted to SUSE Liberty Linux
From the
LiberateSystem Group page, navigate go to theFormulastab.Select the
Liberateformula, and click Save. A new tab calledLiberatewill appear.On the
Liberatetab, you see theReinstall all packages after conversionoption. Keep it checked if you want to reinstall all the packages during the migration. This way you ensure all the packages will have SUSE signatures and no previous package will be kept. If you do not want to change the state of your system during the migration, uncheck this option and click the Save Formula button. In this case, you can re-install the packages later.
Now a system group exists that has assigned the Liberate formula.
This formula will be applied only once to migrate the system to SUSE Liberty Linux, even if you run it multiple times.
With the next procedure, assign the system group to the activation key.
In the Uyuni Web UI, navigate to .
Select the activation key, for example
sll9-defaultfor the EL 9 systems.From the activation key page navigate to the tab, select the
Liberategroup, and click the Join Selected Groups button. The group will be assigned to the activation key.
From the activation key page, navigate to the
Detailstab.Navigate to the
Configuration File Deploymentsection, and check theDeploy configuration files to systems on registrationoption.Click Update Activation Key.
When you register a system with this key it will perform the migration automatically.
3. Register new system and proceed to migration
There are two ways to onboard (or register) a new client with the activation key:
-
For one-off registration or for testing purposes, see Register Clients With the Web UI
-
For mass registration, see Register Clients With a Bootstrap Script.
3.1. Already registered clients
Software channels, system group membership, and formulas can be assigned to any already registered client. This method makes use of the bootstrap script mentioned above.
In the Uyuni Web UI, open the
System Detailspage of any registered client you want to migrate to SUSE Liberty Linux.Click the
Reactivationtab. If there is already a key listed, you can use it. If not, click Generate New Key, and copy the entire key. The key name will begin withre-.SSH into this client and set the environment variable to be the key that you copied:
export REACTIVATION_KEY=re-xxxxxxxxxxxxxxRun the bootstrap script from Register Clients With a Bootstrap Script, and the system will re-register using the same profile as before, but with the newly assigned SUSE Liberty Linux context.
Make sure you use the activation key with the Liberate formula assigned.