puppetlabs / puppetlabs-package

A Puppet Task module, for package.
Apache License 2.0
9 stars 25 forks source link

Support dnf #199

Closed kevinsumner closed 2 years ago

kevinsumner commented 4 years ago

Use Case

dnf should be supported natively (i.e., not through the yum compatibility shim) and preferred when both dnf and yum are available.

Describe the Solution You Would Like

dnf is the default package manager on Fedora since 22 and EL since 8. When running the package task against a dnf-based Linux distro without the yum, bolt should succeed like other package managers in installing/removing/etc. the package.

Describe Alternatives You've Considered

Installing the yum compatibility layer for now, which seems to work.

Additional Context

Lack of support is, at least, obvious with 1.1.0:

zsh$ bolt task run package action=install name=nvi -t mune
Started on mune...
Failed on mune:
  No package managers found: Must be one of: [apt, yum, zypper]
  {
    "status": "failure"
  }
Failed on 1 target: mune
Ran on 1 target in 2.02 sec

Current commit on master showing lack of dnf support, too: https://github.com/puppetlabs/puppetlabs-package/blob/c84c990200dbc5be13771b572b32a19d33276d14/tasks/linux.sh#L10

github-actions[bot] commented 2 years ago

This issue has been marked as stale because it has been open for a while and has had no recent activity. If this issue is still important to you please drop a comment below and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.