Skip to content

[package type dnfmodule provider] Fully support DNF profiles #9317

Open
@EmersonPrado

Description

@EmersonPrado

dnfmodule provider can (un)install DNF profiles. But it has some limitations:

  1. Can't (un)install multiple profiles, as allowed by dnf module command
  2. Always changes DNF stream, even when not asked for
  3. Docs don't make it clear what is (un)installed when using dnfmodule provider - profiles, instead of packages

So I'd like to propose, and try to implement, these changes:

  1. Make flavor parameter accept arrays, so to (un)install multiple profiles
  2. Make provider only change the DNF stream if it's positively specified in ensure* - as opposed to installed, absent, latest, and so on
  3. Rewrite docs on dnfmodule provider so to make all functioning clear

* puppet-yum module will soon support full DNS stream management, so this could be deprecated altogether from dnfmodule provider

I discussed this at length in Puppet Slack, with ideas ranging from implementing stuff in Puppet core, puppet-yum module and a dedicated module. We ended up agreeing in managing profiles (un)installation in core package type (which is the official (un)installer), requiring the changes proposed in this report, and moving DNF streams management (which is a configuration, not an (un)installation) to puppet-yum module. I'm still open to ideas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriagedJira issue has been created for this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions