voxpupuli / puppet-yum

Puppet module for Yum
https://forge.puppet.com/puppet/yum
MIT License
16 stars 101 forks source link

yum::plugin::versionlock fails on CentOS/RHEL 8 #197

Closed TheMeier closed 3 years ago

TheMeier commented 3 years ago

Affected Puppet, Ruby, OS and module versions/distributions

What are you seeing

yum::versionlock or yum::plugin::versionlock fail on CentOS/RHEL 8 with:

Error: Execution of '/bin/dnf -d 0 -e 1 -y list yum-plugin-versionlock' returned 1: Error: No matching Packages to list
Error: /Stage[main]/Yum::Plugin::Versionlock/Yum::Plugin[versionlock]/Package[yum-plugin-versionlock]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y list yum-plugin-versionlock' returned 1: Error: No matching Packages to list

The reason is that the yum plugin package is called python3-dnf-plugin-versionlock