OS Package Update

To install multiple packages on target nodes in a bulk operation, the package_update.yml playbook can be leveraged.

Prerequisites

  • All target nodes should be running RHEL or Rocky (Versions 8.4, 8.5 or 8.6).

  • Download the packages (RPMs) for the target nodes and place them in an empty folder: /install/<custom folder>.

    Note

    Do not use ISO files for updates or package installations.

  • Create a package list by creating the following text file (For packages that are not in RHEL repos, name the file update.otherpkgs.pkglist. For OS packages, xxxx.pkglist) and placing it with the RPMs:

    <package1>-<version1>
    <package2>-<version2>
    <package3>-<version3>
    

To customize the package update, enter the following parameters in utils/package_update_config.yml:

Parameter

Details

os_type

string Required

The operating system in use on the target compute nodes.

Choices:

  • rhel

  • rocky

os_version

string Required

OS version of target nodes in the cluster.

package_dir

string Required

  • Path in which the package RPMs are stored. It should be a subfolder in /install.

  • Example: /install/custom/

package_list

string Required

  • Location path for the package list file

  • For other packagelist, file name should be - (xxx.otherpkgs.pkglist)

  • For os packagelist, file name should be - (xxx.pkglist)

  • All packages in this list will be installed/updated on remote nodes

package_type

string Required

Indicates whether the packages to be installed are os packages (ie they are available in baseos or appstream) or other (ie they’re not part of os repos, appstream or baseos)

Choices:

  • os

  • other

nodelist

string Required

Comma separated list of all target nodes in the cluster.

Default values: all

reboot_required

boolean Required

Indicates whether the remote nodes listed will be rebooted.

Choices:

  • true <- Default

  • false

To run the playbook, run the following commands:

cd utils
ansible-playbook package_update.yml

If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.