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

Cannot change flavor on installed dnf module

    XMLWordPrintable

    Details

    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2020-01-22, NW - 2020-02-05
    • Method Found:
      Needs Assessment
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      The `flavor` package parameter has been changed into a property and can now be changed after it's initially set. Supported providers are `dnfmodule` and `openbsd`.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.11.0
      OS Name/Version: CentOS/RHEL/Fedora

      Apply the following manifest installing the postgresql module stream with the client flavor/profile:

      package {'postgresql':
        ensure   => '9.6',
        flavor   => 'client',
        provider => 'dnfmodule',
      }

      Apply the following manifest, changing the flavor:

      package {'postgresql':
        ensure   => '9.6',
        flavor   => 'server',
        provider => 'dnfmodule',
      }

      Desired Behavior:

      postgres --version should print out the PostgreSQL server version.

      Actual Behavior:

      postgres does not exist because the installed flavor is still client, not server.

      This can be confirmed with: dnf module list --installed

        Attachments

          Activity

            People

            Assignee:
            gabriel.nagy Gabriel Nagy
            Reporter:
            gabriel.nagy Gabriel Nagy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support