Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10419

Support disable module with dnfmodule package provider

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.16.0, PUP 5.5.21
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2020-04-29, NW - 2020-05-13, NW - 2020-05-27
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      To disable a dnf module using puppet, a 'disabled' value was added to the ensure field in the dnf module provider.

      Eample:
      "package { 'package_name':
        ensure => 'disabled',
        provider => 'dnfmodule'
      }
      Show
      To disable a dnf module using puppet, a 'disabled' value was added to the ensure field in the dnf module provider. Eample: "package { 'package_name':   ensure => 'disabled',   provider => 'dnfmodule' }
    • QA Risk Assessment:
      Needs Assessment

      Description

      dnfmodule package provider currently only supports 'enable' operation.

      disable operation should be added as well, which would allow use alternative sources for the OS packages, not supporting modular design.

      For example, to install postgresql 11 one needs to disable 'postgresql' module

      # dnf module list --disabledLast metadata expiration check: 0:01:36 ago on Mon 13 Apr 2020 05:23:56 PM UTC.CentOS-8 - AppStreamName                              Stream                           Profiles                                 Summary                                                  postgresql                        9.6 [x]                          client, server [d]                       PostgreSQL server and client module                      postgresql                        10 [d][x]                        client, server [d]                       PostgreSQL server and client module                      postgresql                        12 [x]                           client, server                           PostgreSQL server and client module                        Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dorin.pleava Dorin Pleava
              Reporter:
              vchepkov Vadym Chepkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support