Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 7
- Ruby: N/A
- Distribution: RHEL
- Module version: 0.23.0
How to reproduce (e.g Puppet code you use)
RHEL 7 is using yum-plugin-versionlock
This package leads all entries with an index in the format
[Numeric index]:[package name]-[version]
RHEL8 is using python3-dnf-plugin-versionlock
This package does not make use of an index but formats entries as
[package name]-[version]
This causes the fact to populate with package name only for RHEL7 systems, and version number only for RHEL8+ as awk is looking for a field that has been shifted left.
What are you seeing
Version numbers (such as 6.10.8) for RHEL8+ systems.
Package names (such as coreutils) for RHEL7 systems.
What behaviour did you expect instead
Package names in the pinned_packages fact for all RHEL systems
Output log
N/A