Skip to content

Commit

Permalink
Add in README dnf_module_stream reasoning
Browse files Browse the repository at this point in the history
  • Loading branch information
EmersonPrado committed Apr 4, 2024
1 parent 18e8fff commit b1a341a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,20 @@ dnf_module_stream { '<Module>':
}
```

#### `dnf_module_stream` resource versus `dnfmodule` provider

[DNF modules](https://dnf.readthedocs.io/en/latest/modularity.html) is a feature from `yum` successor, `dnf`, which allows easier and more robust selections of software versions and collections.

As of Aug 22, 2023, [core Puppet `package` resource `dnfmodule` provider](https://www.puppet.com/docs/puppet/8/types/package.html#package-provider-dnfmodule) has some support for managing streams and profiles, but it has some issues:

1. Setting stream is mandatory when (un)installing profiles - No way of just keeping currently enabled stream
1. It only supports installing a single profile, despite the fact `dnf` supports multi-profile installations and there are use cases for that
1. Managing two things - streams setting and profile (un)installation - in the same resource invocation is inherently messy

One can fix 1 and 2, and add good docs to deal with 3. A compelling reason not to keep 1 and 3 is that a stream is a setting, not something one (un)installs. This makes it unsuitable for the `package` resource which, in principle, should only (un)install stuff.

So, while one fix 2, this custom resource aims to fully and better replace `dnfmodule` provider stream support.

### Puppet tasks

The module has a puppet task that allows to run `yum update` or `yum upgrade`.
Expand Down

0 comments on commit b1a341a

Please sign in to comment.