voxpupuli / puppet-yum

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

Fix purge of unwanted kernels on DNF based machines #309

Closed traylenator closed 1 year ago

traylenator commented 1 year ago

Pull Request (PR) description

Previously when installonly_limit of a node is adjusted then package-cleanup was called to remove unwanted old kernels. This is invalid for dnf based systems and a new command must be used.

This DNF command will remove kernel packages except in two cases:

This Pull Request (PR) fixes the following issues

Fixes #295

traylenator commented 1 year ago

rebase after #308 for fedora test.