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

Cannot change flavor on installed dnf module

    XMLWordPrintable

Details

    • Night's Watch
    • 3
    • NW - 2020-01-22, NW - 2020-02-05
    • Needs Assessment
    • Enhancement
    • 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`.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support