Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-88312

Introduced option to skip package installation

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • rhel-system-roles
    • 0
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Enhancement
    • Hide
      .Introducing flexibility for package installation in `ad_integration` role

      Previously, the `ad_integration` role always attempted to install the required packages, for example, `realmd`, `sssd-ad`, `adcli`, and many more that are listed in ` __ad_integration_packages`. In environments where external systems handled package management, for example, via configuration management outside of this role, pre-baked images, or immutable systems, this step was redundant and undesirable.

      With this update, users can now manage package installations through other means and only want this role to join a domain, offering them flexibility. The notable enhancements are:

      * New Variable: Introduced a new boolean variable `ad_integration_manage_packages` to control whether the role installs packages.

      * Default Value: The default value is set to `true` in `defaults/main.yml` to ensure backward compatibility. Existing playbooks using this role will continue to function as before without modification.

      * Conditional Task: Added a `when: ad_integration_manage_packages | bool` condition to the "Ensure required packages are installed" task in `tasks/main.yml`. The task will now only run if the flag is `true` (the default).

      * Documentation: Updated `README.md` to include the new `ad_integration_manage_packages` variable, explaining its purpose and default value.
      Show
      .Introducing flexibility for package installation in `ad_integration` role Previously, the `ad_integration` role always attempted to install the required packages, for example, `realmd`, `sssd-ad`, `adcli`, and many more that are listed in ` __ad_integration_packages`. In environments where external systems handled package management, for example, via configuration management outside of this role, pre-baked images, or immutable systems, this step was redundant and undesirable. With this update, users can now manage package installations through other means and only want this role to join a domain, offering them flexibility. The notable enhancements are: * New Variable: Introduced a new boolean variable `ad_integration_manage_packages` to control whether the role installs packages. * Default Value: The default value is set to `true` in `defaults/main.yml` to ensure backward compatibility. Existing playbooks using this role will continue to function as before without modification. * Conditional Task: Added a `when: ad_integration_manage_packages | bool` condition to the "Ensure required packages are installed" task in `tasks/main.yml`. The task will now only run if the flag is `true` (the default). * Documentation: Updated `README.md` to include the new `ad_integration_manage_packages` variable, explaining its purpose and default value.
    • Done
    • Required
    • Required
    • Not Required
    • None

      Enhancement:
      This change introduces flexibility for users who manage package installations through other means and only want this role to join to a domain.

      Reason:
      Currently, the `ad_integration` role always attempts to install the required packages (like `realmd`, `sssd-ad`, `adcli`, etc.) listed in `__ad_integration_packages`. In environments where package management is handled externally (e.g., via configuration management outside of this role, pre-baked images, or immutable systems), this step can be redundant or even undesirable.

      Result:
      1. *New Variable:* Introduced a new boolean variable `ad_integration_manage_packages`.
      2. *Default Value:* The variable defaults to `true` in `defaults/main.yml` to ensure backward compatibility. Existing playbooks using this role will continue to function as before without modification.
      3. *Conditional Task:* Added a `when: ad_integration_manage_packages | bool` condition to the "Ensure required packages are installed" task in `tasks/main.yml`. The task will now only run if the flag is `true` (the default).
      4. *Documentation:* Updated `README.md` to include the new `ad_integration_manage_packages` variable, explaining its purpose and default value.

      Issue Tracker Tickets (Jira or BZ if any):

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Mugdha Soni Mugdha Soni
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: