Managing Oracle Linux Systems Guide

Software packages for Oracle Linux are distributed by Oracle via the Unbreakable Linux Network. In order to manage hosts running Oracle Linux and serve content, you need to fetch the software packages from Oracle first.

For a better understanding of orcharhino’s content management, see our glossary for terminology and key terms. Key terms include product, repository, content view, lifecycle environment, and activation key.

For more information, see Content Management guide.

In order to deploy an Oracle Linux 8 host in orcharhino which receives content supplied by the Oracle ULN repositories, the following steps have to be applied:

  1. Create a product called Oracle Linux 8 ULN

  2. Create the necessary repositories

    Create generic yum repositories inside the product created in step 1. Each repository will require your Oracle credentials:

    • Add-ons ULN (uln://ol8_x86_64_addons)

    • Appstream latest ULN (uln://ol8_x86_64_appstream)

    • BaseOS Latest ULN (uln://ol8_x86_64_baseos_latest)

    • ksplice (uln://ol8_x86_64_ksplice)

    • Unbreakable Enterprise Kernel Release 6 (uln://ol8_x86_64_UEKR6)

  3. Synchronize the repositories

    Synchronize all repositories via the Select Action > Sync Now button on the products page.

  4. Create a content view

    Create a single content view called Oracle 8 ULN comprising the ULN repositories created in the Oracle 8 ULN product and publish a new version.

  5. Create a composite content view

    Create a composite content view called Composite Oracle 8 ULN comprising the previously published single Oracle 8 ULN content view and further content views of your choice (e.g. Oracle Linux client, EPEL, or Puppet etc.). Publish a new version and promote this version to the lifecycle environment of your choice.

  6. Create an activation key

    Create an activation key called oracle8-uln and configure it as follows:

    • On the Details tab, assign the correct lifecycle environment and assign the correct composite content view.

    • On the Subscriptions tab, assign the necessary subscriptions (e.g. Oracle 8 ULN, EPEL, and Puppet etc).

  7. Create a host group

    Create a host group called Oracle 8 ULN and assign the previously created activation key to it.

You can now deploy hosts supplied by the Oracle 8 ULN repositories.

The following additional steps are required to deploy hosts which are configured to have ksplice installed and are capable to run uptrack-updates right after deployment:

  1. Create a provisioning template snippet

    Create a provisioning template snippet called install_ksplice containing the following commands:

    yum install uptrack-offline -y
    yum install uptrack-updates-$(uname -r) -y
    yum install ksplice -y
  2. Add the snippet to the provisioning template

    Add the snippet created in step 8 to the provisioning template:

    <% if host_param_true?('install_ksplice') -%>
    <%= snippet 'install_ksplice' -%>
    <% end -%>

    Add this before the following line:

    touch /tmp/foreman_built

    We recommend to not edit a locked template, but rather clone it and edit the cloned template. Remember to add the cloned template to your operating systems.

    Enable the snippet by setting the default value to true:

    - install_ksplice: boolean (default=true)

    Add this before enabling the Puppet repository:

    - enable-puppetlabs-puppet6-repo: boolean (default=false)

    Create the parameter install_ksplice as a boolean in your Oracle Linux 8 ULN hostgroup and set it to true.

In case an older version of the Linux kernel has been active during deployment, run the following command after rebooting the host:

yum install uptrack-updates-$(uname -r) -y