Skip to content

Package inventory lists installed packages for multiple providers #60

@bastelfreak

Description

@bastelfreak

Describe the Bug

I enabled the package collection in hiera via:

---
puppet_enterprise::profile::agent::package_inventory_enabled: true

But some packages are listed multiple times:

2024-10-09_11-11

There are packages, for example the famous toml gem, that often get installed with the puppet_gem provider and the puppetserver_gem. So the toml package is actually installed twice. For rpm vs dnf, this isn't correct. The packages were only installed via dnf and are only installed once, not twice. This is an issue for all installed rpms. I think the package collector should only list the provider or the highlevel provider. The same problem exists on Debian based machines with dpkg vs apt.

Expected Behavior

Packages that are installed only once should only be installed once.

Steps to Reproduce

  • install PE 2021.7.9 or 2023.8.0
  • Enable package collector
  • run puppet agent again
  • check web ui

Environment

  • RHEL 8
  • PE 2023.8.0

Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions