Open
Description
dnfmodule provider can (un)install DNF profiles. But it has some limitations:
- Can't (un)install multiple profiles, as allowed by dnf module command
- Always changes DNF stream, even when not asked for
- 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:
- Make
flavor
parameter accept arrays, so to (un)install multiple profiles - Make provider only change the DNF stream if it's positively specified in
ensure
* - as opposed toinstalled
,absent
,latest
, and so on - 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.